From: Howard Chu Date: Sun, 20 Nov 2005 22:14:57 +0000 (+0000) Subject: More for ITS#3939 X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~756 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=12d29011620ce488d681f25896ff6fc4901ee7d2;p=openldap More for ITS#3939 --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 68821da72f..70dc6ff9e8 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -510,7 +510,11 @@ findcsn_cb( Operation *op, SlapReply *rs ) { slap_callback *sc = op->o_callback; - if ( rs->sr_type == REP_SEARCH && rs->sr_err == LDAP_SUCCESS ) { + /* We just want to know that at least one exists, so it's OK if + * we exceed the unchecked limit. + */ + if ( rs->sr_err == LDAP_ADMINLIMIT_EXCEEDED || + (rs->sr_type == REP_SEARCH && rs->sr_err == LDAP_SUCCESS )) { sc->sc_private = (void *)1; } return LDAP_SUCCESS;