]> git.sur5r.net Git - openldap/commitdiff
make sure no invalid candidate gets used (had a core for i == META_TARGET_MULTIPLE)
authorPierangelo Masarati <ando@openldap.org>
Tue, 7 Feb 2006 18:51:47 +0000 (18:51 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 7 Feb 2006 18:51:47 +0000 (18:51 +0000)
servers/slapd/back-meta/conn.c

index 87b36693701ed03c13b6195e02026f444996ff32..46e5d20a0a8f64adf59a03094ac22183f204d064 100644 (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 );
                                }