mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#5980 clear res_matched after successfully chasing referral
This commit is contained in:
parent
ee5b6762ae
commit
bd312123d6
@ -845,6 +845,10 @@ nextresp2:
|
|||||||
return( -1 ); /* fatal error */
|
return( -1 ); /* fatal error */
|
||||||
}
|
}
|
||||||
lr->lr_res_errno = LDAP_SUCCESS; /* sucessfully chased referral */
|
lr->lr_res_errno = LDAP_SUCCESS; /* sucessfully chased referral */
|
||||||
|
if ( lr->lr_res_matched ) {
|
||||||
|
LDAP_FREE( lr->lr_res_matched );
|
||||||
|
lr->lr_res_matched = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL ) {
|
if ( lr->lr_outrefcnt <= 0 && lr->lr_parent == NULL ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user