mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
fix response output
This commit is contained in:
parent
eb6dcbe246
commit
db85e423d2
1 changed files with 6 additions and 2 deletions
|
|
@ -1044,8 +1044,12 @@ static int dosearch(
|
|||
case LDAP_RES_SEARCH_RESULT:
|
||||
rc = print_result( ld, msg, 1 );
|
||||
#ifdef LDAP_CONTROL_PAGEDRESULTS
|
||||
if ( rc == LDAP_SUCCESS && pageSize != 0 ) {
|
||||
rc = parse_page_control( ld, msg, &cookie );
|
||||
if ( pageSize != 0 ) {
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
rc = parse_page_control( ld, msg, &cookie );
|
||||
} else {
|
||||
morePagedResults = 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue