]> git.sur5r.net Git - openldap/commitdiff
More for ITS#3939
authorHoward Chu <hyc@openldap.org>
Sun, 20 Nov 2005 22:14:57 +0000 (22:14 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 20 Nov 2005 22:14:57 +0000 (22:14 +0000)
servers/slapd/overlays/syncprov.c

index 68821da72f738fa95de491c645e1d4ad4c5f0565..70dc6ff9e83f092a9440bbbecbb1f37d74d1c39f 100644 (file)
@@ -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;