~ubuntu-branches/ubuntu/wily/389-ds-base/wily-proposed

« back to all changes in this revision

Viewing changes to ldap/servers/plugins/acl/acl_ext.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-07-08 15:50:11 UTC
  • mto: (19.1.1 experimental) (0.3.1)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: package-import@ubuntu.com-20140708155011-48naeyka2x89ew8g
Tags: upstream-1.3.2.19
ImportĀ upstreamĀ versionĀ 1.3.2.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
721
721
 
722
722
    /* allocate arrays for result cache */
723
723
    aclpb->aclpb_cache_result = (r_cache_t *)
724
 
            slapi_ch_calloc (aclpb_max_cache_results, sizeof (r_cache_t));
 
724
                slapi_ch_calloc (aclpb_max_cache_results + 1 /* 1 for cache overflow warning */,
 
725
                sizeof (r_cache_t));
725
726
 
726
727
    /* allocate arrays for target handles in eval_context */
727
728
    aclpb->aclpb_curr_entryEval_context.acle_handles_matched_target = (int *)
846
847
        slapi_pblock_get( pb, SLAPI_SEARCH_SIZELIMIT, &aclpb->aclpb_max_member_sizelimit );
847
848
        if ( aclpb->aclpb_max_member_sizelimit == 0 ) {
848
849
                aclpb->aclpb_max_member_sizelimit = SLAPD_DEFAULT_LOOKTHROUGHLIMIT;
 
850
        } else if ( aclpb->aclpb_max_member_sizelimit < -1 ) {
 
851
                /* handle the case of a negtive size limit either set or due
 
852
                 * to bug bz1065971. The member size limit should be dropped,
 
853
                 * but for backward compatibility to the best we can
 
854
                 */
 
855
                aclpb->aclpb_max_member_sizelimit = -1;
849
856
        }
850
857
        slapi_pblock_get( pb, SLAPI_OPERATION_TYPE, &aclpb->aclpb_optype );
851
858