From: Pierangelo Masarati Date: Mon, 21 Jun 2004 16:46:41 +0000 (+0000) Subject: parse page control only in case of succes... X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~204 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=52e8543b7b50c4f41b8a10973bf051da1724f4c3;p=openldap parse page control only in case of succes... --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index d1ec9dc0c0..56834eb096 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -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