]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Set binding state after we have dropped all ops
authorOndřej Kuzník <ondra@mistotebe.net>
Mon, 17 Jul 2017 14:13:52 +0000 (15:13 +0100)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:55:46 +0000 (17:55 +0000)
servers/lloadd/bind.c

index d19aa782a7ef29b465067277416f6410c7c25670..125f937517df8678254bb79ec610deb7c2c7fc77 100644 (file)
@@ -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);