From 14cbf4bc3eb3fc2998deda0a909a25330c38765f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 3 Apr 2006 21:56:30 +0000 Subject: [PATCH] make sure an invalid connection is always released as appropriate --- servers/slapd/back-meta/conn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5