]> git.sur5r.net Git - openldap/commitdiff
honor stop on error
authorPierangelo Masarati <ando@openldap.org>
Tue, 4 Apr 2006 19:48:22 +0000 (19:48 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 4 Apr 2006 19:48:22 +0000 (19:48 +0000)
servers/slapd/back-meta/search.c

index ae6da9dc586d44c3a7572dbd3293202f1934b27e..60f68f0aa560c034ed69ffe81c113d5c351b5e57 100644 (file)
@@ -701,7 +701,9 @@ really_bad:;
                                         * the target enforced a limit lower
                                         * than what requested by the proxy;
                                         * ignore it */
-                                       if ( rs->sr_nentries == op->ors_slimit ) {
+                                       if ( rs->sr_nentries == op->ors_slimit
+                                               || META_BACK_ONERR_STOP( mi ) )
+                                       {
                                                savepriv = op->o_private;
                                                op->o_private = (void *)i;
                                                send_ldap_result( op, rs );