From: Ondřej Kuzník Date: Tue, 3 Aug 2021 11:21:22 +0000 (+0100) Subject: ITS#9624 Make sure we reset only for Binds X-Git-Tag: OPENLDAP_REL_ENG_2_6_0~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71de64fac4d7b2b2eb1def26b37bd232701238fd;p=thirdparty%2Fopenldap.git ITS#9624 Make sure we reset only for Binds --- diff --git a/servers/lloadd/operation.c b/servers/lloadd/operation.c index 7d127e8d54..6004083a71 100644 --- a/servers/lloadd/operation.c +++ b/servers/lloadd/operation.c @@ -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 );