From: Howard Chu Date: Thu, 19 Feb 2009 01:22:04 +0000 (+0000) Subject: More for prev commit X-Git-Tag: ACLCHECK_0~804 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52e0581b7f17f5e3c7c563de1dab3789a7113dcd;p=openldap More for prev commit --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 5feb7e1bee..2ad67c2f50 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -2460,7 +2460,7 @@ pcache_op_search( si->slimit = 0; si->slimit_exceeded = 0; si->caching_reason = PC_IGNORE; - if ( op->ors_slimit && op->ors_slimit < cm->num_entries_limit ) { + if ( op->ors_slimit > 0 && op->ors_slimit < cm->num_entries_limit ) { si->slimit = op->ors_slimit; op->ors_slimit = cm->num_entries_limit; }