ITS#4158 still more

This commit is contained in:
Howard Chu 2005-11-08 09:53:38 +00:00
parent 255112e702
commit ea92291cb6
2 changed files with 1 additions and 2 deletions

View file

@ -207,8 +207,6 @@ cleanup:
op->o_conn->c_authtype = op->orb_method;
}
op->o_conn->c_sasl_bindop = NULL;
if( !BER_BVISNULL( &op->o_req_dn ) ) {
slap_sl_free( op->o_req_dn.bv_val, op->o_tmpmemctx );
BER_BVZERO( &op->o_req_dn );

View file

@ -2008,6 +2008,7 @@ static int connection_bind_cb( Operation *op, SlapReply *rs )
( rs->sr_err == LDAP_SASL_BIND_IN_PROGRESS );
/* Moved here from bind.c due to ITS#4158 */
op->o_conn->c_sasl_bindop = NULL;
if ( op->orb_method == LDAP_AUTH_SASL ) {
if( rs->sr_err == LDAP_SUCCESS ) {
ber_dupbv(&op->o_conn->c_dn, &op->orb_edn);