]> 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>
Fri, 13 Dec 2019 10:36:14 +0000 (10:36 +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 c0c4a0272d1a510c3ba7ffccda0711fa5040d7ea..cc7d735d10e2d0c383b6597d72e8730f12ce3dac 100644 (file)
@@ -1616,7 +1616,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... */