From: Pierangelo Masarati Date: Fri, 13 May 2005 13:10:33 +0000 (+0000) Subject: fix sizelimit interaction with glue overlay (ITS#3724) X-Git-Tag: OPENLDAP_AC_BP~643 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46387a12a9f1214c1b90e3cccfe4b9be757cfd4c;p=openldap fix sizelimit interaction with glue overlay (ITS#3724) --- 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;