]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#4151 - set sasl_bind_in_progress in bind_cb
authorHoward Chu <hyc@openldap.org>
Sat, 5 Nov 2005 22:35:40 +0000 (22:35 +0000)
committerHoward Chu <hyc@openldap.org>
Sat, 5 Nov 2005 22:35:40 +0000 (22:35 +0000)
servers/slapd/connection.c

index e3bd2f5d411915b288f6904a3be681581cb38549..eea67ea1e27fd0fc91149db7e813c01ccffac364 100644 (file)
@@ -2004,6 +2004,8 @@ static int connection_bind_cb( Operation *op, SlapReply *rs )
 
        ldap_pvt_thread_mutex_lock( &op->o_conn->c_mutex );
        op->o_conn->c_conn_state = SLAP_C_ACTIVE;
+       op->o_conn->c_sasl_bind_in_progress =
+               ( rs->sr_err == LDAP_SASL_BIND_IN_PROGRESS );
        ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
 
        ch_free( cb );