]> 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)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 6 Oct 2011 23:52:27 +0000 (16:52 -0700)
clients/tools/ldapsearch.c

index 4eeca808b902b5cff7fa0ea0aa65ea61a04c48ea..fb85a60726e354b8178be329a363c4ccb68ebc94 100644 (file)
@@ -1219,7 +1219,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;
@@ -1232,7 +1232,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;