]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapsearch.c
make sure size limits are passed to ldapsearch
[openldap] / 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;