From 23f78d1bbabec0167da8bc8a03727bbd5c9938ce Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 17 Oct 2008 00:06:12 +0000 Subject: [PATCH] leave rs struct untouched (ITS#5742) --- servers/slapd/back-ldap/chain.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-ldap/chain.c b/servers/slapd/back-ldap/chain.c index ffdf61fe5c..808561f071 100644 --- a/servers/slapd/back-ldap/chain.c +++ b/servers/slapd/back-ldap/chain.c @@ -597,6 +597,8 @@ ldap_chain_search( struct berval odn = op->o_req_dn, ondn = op->o_req_ndn; 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, first_rc = -1; @@ -761,7 +763,8 @@ further_cleanup:; op->o_req_ndn = ondn; op->o_callback->sc_response = save_response; rs->sr_type = REP_SEARCHREF; - rs->sr_entry = NULL; + rs->sr_entry = save_entry; + rs->sr_flags = save_flags; if ( rc != LDAP_SUCCESS ) { /* couldn't chase any of the referrals */ -- 2.39.5