make sure an invalid connection is always released as appropriate

This commit is contained in:
Pierangelo Masarati 2006-04-03 21:56:30 +00:00
parent aecfb85793
commit 14cbf4bc3e

View File

@ -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;