Skip to content
Snippets Groups Projects
Commit db85e423 authored by Pierangelo Masarati's avatar Pierangelo Masarati
Browse files

fix response output

parent eb6dcbe2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment