]> git.sur5r.net Git - openldap/commitdiff
partially fixes ITS#2299
authorPierangelo Masarati <ando@openldap.org>
Wed, 5 Feb 2003 19:33:01 +0000 (19:33 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 5 Feb 2003 19:33:01 +0000 (19:33 +0000)
servers/slapd/backglue.c

index 69c102d231c8a2776d59fe7eb925bfa44b26a631..8ffccd74f5f1a9ccebd01e72f0b802c8bb67b3d3 100644 (file)
@@ -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;