From cfeb4d82a358786588ac4456af981e858d022f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Mon, 17 Jul 2017 15:13:52 +0100 Subject: [PATCH] Set binding state after we have dropped all ops --- servers/lloadd/bind.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/lloadd/bind.c b/servers/lloadd/bind.c index d19aa782a7..125f937517 100644 --- a/servers/lloadd/bind.c +++ b/servers/lloadd/bind.c @@ -310,11 +310,12 @@ client_bind( Connection *client, Operation *op ) /* protect the Bind operation */ op->o_client_refcnt++; tavl_delete( &client->c_ops, op, operation_client_cmp ); - client->c_state = SLAP_C_BINDING; - client->c_type = SLAP_C_OPEN; client_reset( client ); + client->c_state = SLAP_C_BINDING; + client->c_type = SLAP_C_OPEN; + rc = tavl_insert( &client->c_ops, op, operation_client_cmp, avl_dup_error ); assert( rc == LDAP_SUCCESS ); CONNECTION_UNLOCK_INCREF(client);