]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 21 Jun 2011 20:06:35 +0000 (13:06 -0700)
servers/slapd/overlays/sssvlv.c

index bb779e6c76a65e4f85567cac50f72413dcfcc57f..ce3da34f5be4282aaec30290bf35f46876cb5ba0 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;