From: Pierangelo Masarati Date: Sat, 25 Mar 2006 01:12:27 +0000 (+0000) Subject: fix previous commit: actually free the connection in case of failed bind X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~109 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1418b2c5b175affb49fb7f50951647fbbbad826e;p=openldap fix previous commit: actually free the connection in case of failed bind --- diff --git a/servers/slapd/back-ldap/bind.c b/servers/slapd/back-ldap/bind.c index 06b069bdb8..f8ee616724 100644 --- a/servers/slapd/back-ldap/bind.c +++ b/servers/slapd/back-ldap/bind.c @@ -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:;