]> git.sur5r.net Git - openldap/commitdiff
Fix for RFC 2696 compliance - avoids infinite loop when talking to
authorLuke Howard <lukeh@openldap.org>
Fri, 27 Feb 2004 08:16:36 +0000 (08:16 +0000)
committerLuke Howard <lukeh@openldap.org>
Fri, 27 Feb 2004 08:16:36 +0000 (08:16 +0000)
Active Directory (which returns no cookie but size in the last
paged results - this is permitted).

clients/tools/ldapsearch.c

index 26dae4ee9c8599610506d6ad5de7076c6d24afc8..7d9a453bafd6c02531ab57fb339fca5c4f9eae8c 100644 (file)
@@ -1594,6 +1594,10 @@ parse_page_control(
                        return EXIT_FAILURE;
                }
 
+               if ( servercookie.bv_len == 0 ) {
+                       morePagedResults = 0;
+               }
+
                ldap_controls_free( ctrl );
 
        } else {