mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 08:09:34 -05:00
leave rs struct untouched (ITS#5742)
This commit is contained in:
parent
bbe6e77876
commit
23f78d1bba
1 changed files with 4 additions and 1 deletions
|
|
@ -597,6 +597,8 @@ ldap_chain_search(
|
||||||
struct berval odn = op->o_req_dn,
|
struct berval odn = op->o_req_dn,
|
||||||
ondn = op->o_req_ndn;
|
ondn = op->o_req_ndn;
|
||||||
slap_response *save_response = op->o_callback->sc_response;
|
slap_response *save_response = op->o_callback->sc_response;
|
||||||
|
Entry *save_entry = rs->sr_entry;
|
||||||
|
slap_mask_t save_flags = rs->sr_flags;
|
||||||
|
|
||||||
int rc = LDAP_OTHER,
|
int rc = LDAP_OTHER,
|
||||||
first_rc = -1;
|
first_rc = -1;
|
||||||
|
|
@ -761,7 +763,8 @@ further_cleanup:;
|
||||||
op->o_req_ndn = ondn;
|
op->o_req_ndn = ondn;
|
||||||
op->o_callback->sc_response = save_response;
|
op->o_callback->sc_response = save_response;
|
||||||
rs->sr_type = REP_SEARCHREF;
|
rs->sr_type = REP_SEARCHREF;
|
||||||
rs->sr_entry = NULL;
|
rs->sr_entry = save_entry;
|
||||||
|
rs->sr_flags = save_flags;
|
||||||
|
|
||||||
if ( rc != LDAP_SUCCESS ) {
|
if ( rc != LDAP_SUCCESS ) {
|
||||||
/* couldn't chase any of the referrals */
|
/* couldn't chase any of the referrals */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue