From 6275c6ecdc595aa421d3043c2fe899a53391356a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Tue, 7 Feb 2006 18:51:47 +0000 Subject: [PATCH] make sure no invalid candidate gets used (had a core for i == META_TARGET_MULTIPLE) --- servers/slapd/back-meta/conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); } -- 2.39.5