diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 8c0c1862ff..b82c71cc49 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -981,6 +981,7 @@ getNextPage: attrs, attrsonly, NULL, NULL, NULL, -1 ); } else { + rc = 0; first = 1; while ( fgets( line, sizeof( line ), fp ) != NULL ) { line[ strlen( line ) - 1 ] = '\0';