do not prompt for next page in case of search failure

This commit is contained in:
Pierangelo Masarati 2004-04-09 10:26:30 +00:00
parent 6b45e32da3
commit b641adad8c

View File

@ -837,7 +837,7 @@ getNextPage:
}
#ifdef LDAP_CONTROL_PAGEDRESULTS
if ( ( pageSize != 0 ) && ( morePagedResults != 0 ) ) {
if ( ( rc == LDAP_SUCCESS ) && ( pageSize != 0 ) && ( morePagedResults != 0 ) ) {
char buf[6];
int i, moreEntries, tmpSize;