]> git.sur5r.net Git - openldap/commitdiff
fix sizelimit interaction with glue overlay (ITS#3724)
authorPierangelo Masarati <ando@openldap.org>
Fri, 13 May 2005 13:10:33 +0000 (13:10 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 13 May 2005 13:10:33 +0000 (13:10 +0000)
servers/slapd/back-meta/search.c

index 90abb9f6c79f8eb947777017751e300f9e58f599..34c23de5118e2746e4acd20669fd0db4eac323d5 100644 (file)
@@ -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;