mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
Fix previous commit, only zero out v3 refer_cnt if we got a SEARCH_RESULT.
If we got a SEARCH_REFERENCE, we need to keep going...
This commit is contained in:
parent
b9d74aba5f
commit
b732d3ec55
1 changed files with 7 additions and 2 deletions
|
|
@ -647,8 +647,13 @@ try_read1msg(
|
|||
{
|
||||
tmpber = *ber; /* struct copy */
|
||||
if ( v3ref == 1 ) {
|
||||
/* V3 search reference or V3 referral successfully chased */
|
||||
refer_cnt = 0;
|
||||
/* V3 search reference or V3 referral
|
||||
* sucessfully chased. If this message
|
||||
* is a search result, then it has no more
|
||||
* outstanding referrals.
|
||||
*/
|
||||
if ( tag == LDAP_RES_SEARCH_RESULT )
|
||||
refer_cnt = 0;
|
||||
} else if ( ber_scanf( &tmpber, "{iaa}", &lderr,
|
||||
&lr->lr_res_matched, &lr->lr_res_error )
|
||||
!= LBER_ERROR ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue