mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
parse page control only in case of succes...
This commit is contained in:
parent
77eacb0dfe
commit
52e8543b7b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user