]> git.sur5r.net Git - openldap/commitdiff
fix previous commit: actually free the connection in case of failed bind
authorPierangelo Masarati <ando@openldap.org>
Sat, 25 Mar 2006 01:12:27 +0000 (01:12 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 25 Mar 2006 01:12:27 +0000 (01:12 +0000)
servers/slapd/back-ldap/bind.c

index 06b069bdb8f926bdc17fcda4e63159f59c1a5300..f8ee616724e6a5afcf49263ec224aeba07fd6f1e 100644 (file)
@@ -113,7 +113,7 @@ done:;
                || ( LDAP_BACK_CONN_ISBOUND( lc )
                        && !dn_match( &op->o_req_ndn, &lc->lc_local_ndn ) ) )
        {
-               int             lerr = 0;
+               int             lerr = -1;
 
                /* wait for all other ops to release the connection */
 retry_lock:;