From: Luke Howard Date: Fri, 27 Feb 2004 08:16:36 +0000 (+0000) Subject: Fix for RFC 2696 compliance - avoids infinite loop when talking to X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~399 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bd8712ad36fbf6010d5d5b86b9e3c1190c9cb270;p=openldap Fix for RFC 2696 compliance - avoids infinite loop when talking to Active Directory (which returns no cookie but size in the last paged results - this is permitted). --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 26dae4ee9c..7d9a453baf 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1594,6 +1594,10 @@ parse_page_control( return EXIT_FAILURE; } + if ( servercookie.bv_len == 0 ) { + morePagedResults = 0; + } + ldap_controls_free( ctrl ); } else {