]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: SMB2 - Ensure we use the correct session_id if encrypting an interim response.
authorJeremy Allison <jra@samba.org>
Thu, 7 Nov 2019 20:02:13 +0000 (12:02 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Dec 2019 08:22:35 +0000 (08:22 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14189

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit eae1a45d09ef54dd6b59803eedca672ae9433902)

source3/smbd/smb2_server.c

index cec1d9ad2a98e734af88aec356208c6aa275496e..24d96dec534c077e3149d261449a6daef61737de 100644 (file)
@@ -1607,7 +1607,7 @@ static void smbd_smb2_request_pending_timer(struct tevent_context *ev,
        outhdr = SMBD_SMB2_OUT_HDR_PTR(req);
        flags = IVAL(outhdr, SMB2_HDR_FLAGS);
        message_id = BVAL(outhdr, SMB2_HDR_MESSAGE_ID);
-       session_id = BVAL(outhdr, SMB2_HDR_SESSION_ID);
+       session_id = req->session->global->session_wire_id;
 
        async_id = message_id; /* keep it simple for now... */