From: Pierangelo Masarati Date: Wed, 5 Feb 2003 19:33:01 +0000 (+0000) Subject: partially fixes ITS#2299 X-Git-Tag: NO_SLAP_OP_BLOCKS~433 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fae57fcd158b42436db58b7d508d7be49f9e5c49;p=openldap partially fixes ITS#2299 --- diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 69c102d231..8ffccd74f5 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -405,7 +405,23 @@ glue_back_search ( s2limit, t2limit, filter, filterstr, attrs, attrsonly); } + + switch ( gs.err ) { + + /* + * Add errors that should result in dropping + * the search + */ + case LDAP_SIZELIMIT_EXCEEDED: + case LDAP_TIMELIMIT_EXCEEDED: + case LDAP_ADMINLIMIT_EXCEEDED: + goto end_of_loop; + + default: + break; + } } +end_of_loop:; break; } op->o_callback = gs.prevcb;