From b641adad8cdbe2517e858655adca598a23e80205 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 9 Apr 2004 10:26:30 +0000 Subject: [PATCH] do not prompt for next page in case of search failure --- clients/tools/ldapsearch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5