From 12d29011620ce488d681f25896ff6fc4901ee7d2 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sun, 20 Nov 2005 22:14:57 +0000 Subject: [PATCH] More for ITS#3939 --- servers/slapd/overlays/syncprov.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- 2.39.5