]> git.sur5r.net Git - openldap/commitdiff
leave rs struct untouched (ITS#5742)
authorPierangelo Masarati <ando@openldap.org>
Fri, 17 Oct 2008 00:06:12 +0000 (00:06 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 17 Oct 2008 00:06:12 +0000 (00:06 +0000)
servers/slapd/back-ldap/chain.c

index ffdf61fe5ce01cfedc869b2b3256a0c8c624906b..808561f0714c77a37d51cf429cd7b47f2f2bdfcd 100644 (file)
@@ -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 */