Fix spurious sizelimit exceeded err

This commit is contained in:
Howard Chu 2009-02-19 01:15:15 +00:00
parent a692e8ad74
commit 55d77a7a95

View File

@ -1976,7 +1976,7 @@ pcache_op_cleanup( Operation *op, SlapReply *rs ) {
Entry *e; Entry *e;
/* don't return more entries than requested by the client */ /* 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; si->slimit_exceeded = 1;
} }