From: Pierangelo Masarati Date: Mon, 3 Apr 2006 21:56:30 +0000 (+0000) Subject: make sure an invalid connection is always released as appropriate X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=14cbf4bc3eb3fc2998deda0a909a25330c38765f;p=openldap make sure an invalid connection is always released as appropriate --- diff --git a/servers/slapd/back-meta/conn.c b/servers/slapd/back-meta/conn.c index dce20023bb..86db9cfe29 100644 --- a/servers/slapd/back-meta/conn.c +++ b/servers/slapd/back-meta/conn.c @@ -520,8 +520,9 @@ meta_back_retry( rc = meta_back_single_dobind( op, rs, mcp, candidate, sendok, mt->mt_nretries, 0 ); } + } - } else { + if ( rc != LDAP_SUCCESS ) { meta_back_release_conn_lock( op, mc, 1, 0 ); *mcp = NULL;