From e438122448bda4168a4d5f84dd251f3590d2b737 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 4 Nov 2011 11:32:38 -0700 Subject: [PATCH] ITS#7081 fix prev commit --- servers/slapd/overlays/pcache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 2af2f06840..8788378a30 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -2448,9 +2448,6 @@ pcache_response( if ( si->slimit > 0 && rs->sr_nentries >= si->slimit ) { si->slimit_exceeded = 1; } - if ( si->slimit_exceeded ) { - return 0; - } /* If we haven't exceeded the limit for this query, * build a chain of answers to store. If we hit the @@ -2500,6 +2497,9 @@ over:; si->tail = NULL; } } + if ( si->slimit_exceeded ) { + return 0; + } } else if ( rs->sr_type == REP_RESULT ) { if ( si->count ) { -- 2.39.5