From: Pierangelo Masarati Date: Fri, 17 Oct 2008 00:06:12 +0000 (+0000) Subject: leave rs struct untouched (ITS#5742) X-Git-Tag: ACLCHECK_0~1243 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=23f78d1bbabec0167da8bc8a03727bbd5c9938ce;p=openldap leave rs struct untouched (ITS#5742) --- 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 */