From: Howard Chu Date: Thu, 19 Feb 2009 01:15:15 +0000 (+0000) Subject: Fix spurious sizelimit exceeded err X-Git-Tag: ACLCHECK_0~805 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=55d77a7a9586627ab466d477ecb1adf734aa99cb;p=openldap Fix spurious sizelimit exceeded err --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 5f3ce24004..5feb7e1bee 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -1976,7 +1976,7 @@ pcache_op_cleanup( Operation *op, SlapReply *rs ) { Entry *e; /* don't return more entries than requested by the client */ - if ( si->slimit && rs->sr_nentries >= si->slimit ) { + if ( si->slimit > 0 && rs->sr_nentries >= si->slimit ) { si->slimit_exceeded = 1; }