From 1418b2c5b175affb49fb7f50951647fbbbad826e Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 25 Mar 2006 01:12:27 +0000 Subject: [PATCH] fix previous commit: actually free the connection in case of failed bind --- servers/slapd/back-ldap/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:; -- 2.39.5