From: Pierangelo Masarati Date: Fri, 9 Apr 2004 10:26:30 +0000 (+0000) Subject: do not prompt for next page in case of search failure X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~66 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b641adad8cdbe2517e858655adca598a23e80205;p=openldap do not prompt for next page in case of search failure --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 84dddea57e..6f8d4a8ec0 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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;