]> git.sur5r.net Git - openldap/commitdiff
ITS#5461 initialize rs->sr_tag, sr_msgid for Abandons too
authorHoward Chu <hyc@openldap.org>
Wed, 28 May 2008 01:48:41 +0000 (01:48 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 28 May 2008 01:48:41 +0000 (01:48 +0000)
servers/slapd/result.c

index f81ca9f4824c375c00235409d743a4bbcb1e11f8..8b623bbaba50a320a7bf80568f09f42b98c03218 100644 (file)
@@ -627,10 +627,10 @@ slap_send_ldap_result( Operation *op, SlapReply *rs )
                rs->sr_ref = NULL;
        }
 
+abandon:
        rs->sr_tag = slap_req2res( op->o_tag );
        rs->sr_msgid = (rs->sr_tag != LBER_SEQUENCE) ? op->o_msgid : 0;
 
-abandon:
        if ( rs->sr_flags & REP_REF_MUSTBEFREED ) {
                if ( rs->sr_ref == NULL ) {
                        rs->sr_flags ^= REP_REF_MUSTBEFREED;