]> git.sur5r.net Git - openldap/commitdiff
ITS#818, ITS#980, ITS#1234 ldapsearch/referral hang - set refer_cnt to 0
authorHoward Chu <hyc@openldap.org>
Tue, 16 Apr 2002 12:53:13 +0000 (12:53 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 16 Apr 2002 12:53:13 +0000 (12:53 +0000)
after v3refs have been chased. They are fully processed by the time we get
back, so we should just return the current result message to the caller.

libraries/libldap/result.c

index c99e2a84ff93a43036a1e537d1d7b30116392ca9..5905f43afa1417870e1c8397fd238b1fb052599e 100644 (file)
@@ -647,7 +647,8 @@ try_read1msg(
                {
                        tmpber = *ber;  /* struct copy */
                        if ( v3ref == 1 ) {
-                               ; /* V3 search reference or V3 referral sucessfully chased */
+                               /* V3 search reference or V3 referral successfully chased */
+                               refer_cnt = 0;
                        } else if ( ber_scanf( &tmpber, "{iaa}", &lderr,
                            &lr->lr_res_matched, &lr->lr_res_error )
                            != LBER_ERROR ) {