parse page control only in case of succes...

This commit is contained in:
Pierangelo Masarati 2004-06-21 16:46:41 +00:00
parent 77eacb0dfe
commit 52e8543b7b

View File

@ -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