ITS#9624 Make sure we reset only for Binds

This commit is contained in:
Ondřej Kuzník 2021-08-03 12:21:22 +01:00 committed by Quanah Gibson-Mount
parent 7c17f06197
commit 71de64fac4

View File

@ -276,7 +276,8 @@ operation_unlink_client( LloadOperation *op, LloadConnection *client )
assert( op == removed );
client->c_n_ops_executing--;
if ( client->c_state == LLOAD_C_BINDING ) {
if ( op->o_tag == LDAP_REQ_BIND &&
client->c_state == LLOAD_C_BINDING ) {
client->c_state = LLOAD_C_READY;
if ( !BER_BVISNULL( &client->c_auth ) ) {
ber_memfree( client->c_auth.bv_val );