From: Howard Chu Date: Tue, 16 Apr 2002 12:53:13 +0000 (+0000) Subject: ITS#818, ITS#980, ITS#1234 ldapsearch/referral hang - set refer_cnt to 0 X-Git-Tag: OPENLDAP_REL_ENG_2_MP~183 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=dc3e5fb99da41438844d4901b86f145b4e653c4d;p=openldap ITS#818, ITS#980, ITS#1234 ldapsearch/referral hang - set refer_cnt to 0 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. --- diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index c99e2a84ff..5905f43afa 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -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 ) {