From fae57fcd158b42436db58b7d508d7be49f9e5c49 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 5 Feb 2003 19:33:01 +0000 Subject: [PATCH] partially fixes ITS#2299 --- servers/slapd/backglue.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; -- 2.39.5