smb: minor fix to use SMB2_NTLMV2_SESSKEY_SIZE for auth_key size
authorBharath SM <bharathsm@microsoft.com>
Thu, 19 Jun 2025 15:35:34 +0000 (21:05 +0530)
committerSteve French <stfrench@microsoft.com>
Sat, 21 Jun 2025 16:03:25 +0000 (11:03 -0500)
commit27e9d5d021dbaa1211836d07a240078bf84b284e
treece0429e0e5de18ada1985e5abc4abda311f6ddae
parent4d360cfe8cbac3b62bd9e1df9889bde8a9d5b1d7
smb: minor fix to use SMB2_NTLMV2_SESSKEY_SIZE for auth_key size

Replaced hardcoded value 16 with SMB2_NTLMV2_SESSKEY_SIZE
in the auth_key definition and memcpy call.

Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifs_ioctl.h
fs/smb/client/ioctl.c