mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-24 13:24:56 +08:00
improve previous fix; return LDAP_REFERRAL to avoid returning result multiple times
This commit is contained in:
parent
59b96206a8
commit
914f47f253
@ -67,6 +67,7 @@ dnssrv_back_referrals(
|
||||
rs->sr_err = LDAP_REFERRAL;
|
||||
rs->sr_ref = default_referral;
|
||||
send_ldap_result( op, rs );
|
||||
rs->sr_ref = NULL;
|
||||
return LDAP_REFERRAL;
|
||||
}
|
||||
|
||||
@ -124,5 +125,5 @@ done:
|
||||
if( hostlist != NULL ) ch_free( hostlist );
|
||||
if( hosts != NULL ) ldap_charray_free( hosts );
|
||||
ber_bvarray_free( urls );
|
||||
return rc;
|
||||
return rs->sr_err;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user