Commit cd9fdd72 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

More for ITS#5317

parent d775ea86
......@@ -625,7 +625,7 @@ main( int argc, char **argv )
{
char *filtpattern, **attrs = NULL, line[BUFSIZ];
FILE *fp = NULL;
int rc, i, first;
int rc, rc1, i, first;
LDAP *ld = NULL;
BerElement *seber = NULL, *vrber = NULL;
......@@ -990,11 +990,13 @@ getNextPage:
} else {
first = 0;
}
rc = dosearch( ld, base, scope, filtpattern, line,
rc1 = dosearch( ld, base, scope, filtpattern, line,
attrs, attrsonly, NULL, NULL, NULL, -1 );
if ( rc != 0 && !contoper ) {
break;
if ( rc1 != 0 ) {
rc = rc1;
if ( !contoper )
break;
}
}
if ( fp != stdin ) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment