mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
More for ITS#5317
This commit is contained in:
parent
09e624ce6a
commit
55e8763433
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user