From: Pierangelo Masarati Date: Tue, 7 Feb 2006 18:51:47 +0000 (+0000) Subject: make sure no invalid candidate gets used (had a core for i == META_TARGET_MULTIPLE) X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~219 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6275c6ecdc595aa421d3043c2fe899a53391356a;p=openldap make sure no invalid candidate gets used (had a core for i == META_TARGET_MULTIPLE) --- diff --git a/servers/slapd/back-meta/conn.c b/servers/slapd/back-meta/conn.c index 87b3669370..46e5d20a0a 100644 --- a/servers/slapd/back-meta/conn.c +++ b/servers/slapd/back-meta/conn.c @@ -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 ); }