]> git.sur5r.net Git - openldap/commitdiff
ITS#6973 need limits_check if overlay is global
authorHoward Chu <hyc@openldap.org>
Tue, 21 Jun 2011 09:40:38 +0000 (02:40 -0700)
committerHoward Chu <hyc@openldap.org>
Tue, 21 Jun 2011 09:40:38 +0000 (02:40 -0700)
servers/slapd/overlays/sssvlv.c

index 160ba485bf7997343bbd3176f95aa6a01fcd4ab6..69b202bb4231f064d8d31193c8f372261d320ec7 100644 (file)
@@ -873,6 +873,9 @@ static int sssvlv_op_search(
        }
        ldap_pvt_thread_mutex_unlock( &sort_conns_mutex );
        if ( ok ) {
+               /* If we're a global overlay, this check got bypassed */
+               if ( !op->ors_limit && limits_check( op, rs ))
+                       return rs->sr_err;
                /* are we continuing a VLV search? */
                if ( so && vc && vc->vc_context ) {
                        so->so_ctrl = sc;