make sure no invalid candidate gets used (had a core for i == META_TARGET_MULTIPLE)

This commit is contained in:
Pierangelo Masarati 2006-02-07 18:51:47 +00:00
parent 4bae2b8db3
commit 6275c6ecdc

View File

@ -947,7 +947,7 @@ retry_lock:
i = meta_back_get_candidate( op, rs, &pndn );
}
if ( rs->sr_err != LDAP_SUCCESS ) {
if ( i < 0 || rs->sr_err != LDAP_SUCCESS ) {
if ( mc != NULL ) {
meta_back_release_conn( op, mc );
}