]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/search.c
Fix prev commit
[openldap] / servers / slapd / search.c
index 981223cf517c7103a8959df6babd2b66637520af..ee168664bb83cf9c1d7cc8bb08bc51f331029b98 100644 (file)
@@ -398,7 +398,7 @@ do_search(
 #endif /* LDAP_SLAPI */
 
        /* actually do the search and send the result(s) */
-       if ( op->o_bd->be_search ) {
+       if ( op->o_bd->be_search && limits_check( op, rs ) == 0 ) {
                (op->o_bd->be_search)( op, rs );
        } else {
                send_ldap_error( op, rs, LDAP_UNWILLING_TO_PERFORM,