]> git.sur5r.net Git - openldap/commitdiff
make sure size limits are passed to ldapsearch
authorPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 15:02:02 +0000 (09:02 -0600)
committerPierangelo Masarati <ando@OpenLDAP.org>
Mon, 22 Aug 2011 17:19:30 +0000 (11:19 -0600)
clients/tools/ldapsearch.c

index f295c3e613da7b5945e60136ab7fa589ee3e125a..64568a70d29ca3634aec6dad7efb679e4612b558 100644 (file)
@@ -1229,7 +1229,7 @@ getNextPage:
 
        if ( infile == NULL ) {
                rc = dosearch( ld, base, scope, NULL, filtpattern,
-                       attrs, attrsonly, NULL, NULL, NULL, -1 );
+                       attrs, attrsonly, NULL, NULL, NULL, sizelimit );
 
        } else {
                rc = 0;
@@ -1242,7 +1242,7 @@ getNextPage:
                                first = 0;
                        }
                        rc1 = dosearch( ld, base, scope, filtpattern, line,
-                               attrs, attrsonly, NULL, NULL, NULL, -1 );
+                               attrs, attrsonly, NULL, NULL, NULL, sizelimit );
 
                        if ( rc1 != 0 ) {
                                rc = rc1;