From 71de64fac4d7b2b2eb1def26b37bd232701238fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 3 Aug 2021 12:21:22 +0100 Subject: [PATCH] ITS#9624 Make sure we reset only for Binds --- servers/lloadd/operation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 );