]> 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)
committerJeremy Allison <jra@samba.org>
Tue, 12 Nov 2019 20:56:34 +0000 (20:56 +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>
source3/smbd/smb2_server.c

index 130fe5048c008326208ad88f12fa520a1efc531d..6f8904d86bcdd8f11eeb76d9ed14655d4bb95b35 100644 (file)
@@ -1620,7 +1620,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... */