]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Reset pin on simple bind
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 17 Jan 2018 15:30:24 +0000 (15:30 +0000)
committerOndřej Kuzník <okuznik@symas.com>
Tue, 17 Nov 2020 17:58:14 +0000 (17:58 +0000)
servers/lloadd/bind.c

index b61a055122a6fda1ec1e489e7d2601388a8a35c7..cbeddbb30c09300e611681c26c7687478a037527 100644 (file)
@@ -322,6 +322,9 @@ request_bind( LloadConnection *client, LloadOperation *op )
     CONNECTION_LOCK(upstream);
     if ( pin ) {
         tavl_delete( &upstream->c_ops, op, operation_upstream_cmp );
+        if ( tag == LDAP_AUTH_SIMPLE ) {
+            pin = op->o_pin_id = 0;
+        }
     } else if ( tag == LDAP_AUTH_SASL && !op->o_pin_id ) {
         ldap_pvt_thread_mutex_lock( &lload_pin_mutex );
         pin = op->o_pin_id = lload_next_pin++;