mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
ksmbd: use channel signingkey for binding SMB2 session setup
Windows client disconnect connection by wrong signed SMB2 session setup response on SMB3 multichannel mode. Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
9fb8fac08f
commit
08bdbc6ef4
1 changed files with 2 additions and 1 deletions
|
@ -8150,7 +8150,8 @@ void smb3_set_sign_rsp(struct ksmbd_work *work)
|
|||
len = ALIGN(len, 8);
|
||||
}
|
||||
|
||||
if (le16_to_cpu(hdr->Command) == SMB2_SESSION_SETUP_HE) {
|
||||
if (conn->binding == false &&
|
||||
le16_to_cpu(hdr->Command) == SMB2_SESSION_SETUP_HE) {
|
||||
signing_key = work->sess->smb3signingkey;
|
||||
} else {
|
||||
chann = lookup_chann_list(work->sess, work->conn);
|
||||
|
|
Loading…
Reference in a new issue