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

parse page control only in case of succes...

parent 77eacb0d
Branches
Tags
No related merge requests found
......@@ -1044,7 +1044,7 @@ static int dosearch(
case LDAP_RES_SEARCH_RESULT:
rc = print_result( ld, msg, 1 );
#ifdef LDAP_CONTROL_PAGEDRESULTS
if ( pageSize != 0 ) {
if ( rc == LDAP_SUCCESS && pageSize != 0 ) {
rc = parse_page_control( ld, msg, &cookie );
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment