]> git.sur5r.net Git - openldap/commitdiff
Fix spurious sizelimit exceeded err
authorHoward Chu <hyc@openldap.org>
Thu, 19 Feb 2009 01:15:15 +0000 (01:15 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 19 Feb 2009 01:15:15 +0000 (01:15 +0000)
servers/slapd/overlays/pcache.c

index 5f3ce24004bbc6e0748736b8f7b4814f60291cb7..5feb7e1bee87b490b82a4828537598a10d178f76 100644 (file)
@@ -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;
                }