From 46387a12a9f1214c1b90e3cccfe4b9be757cfd4c Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 13 May 2005 13:10:33 +0000 Subject: [PATCH] fix sizelimit interaction with glue overlay (ITS#3724) --- servers/slapd/back-meta/search.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/servers/slapd/back-meta/search.c b/servers/slapd/back-meta/search.c index 90abb9f6c7..34c23de511 100644 --- a/servers/slapd/back-meta/search.c +++ b/servers/slapd/back-meta/search.c @@ -378,8 +378,7 @@ really_bad:; goto finish; } else if ( rc == LDAP_RES_SEARCH_ENTRY ) { - if ( op->ors_slimit > 0 && rs->sr_nentries == op->ors_slimit ) - { + if ( --op->ors_slimit == -1 ) { ldap_msgfree( res ); res = NULL; -- 2.39.5