diff options
author | Meetakshi Setiya <msetiya@microsoft.com> | 2023-10-04 14:17:55 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-10-23 03:03:42 +0300 |
commit | 1460720c5913c11415e4d7c4df5a287eb2ad3f3e (patch) | |
tree | 93cecacfabb97c9540680ca26831f9a508e51657 /fs/smb/client/ntlmssp.h | |
parent | 475efd9808a3094944a56240b2711349e433fb66 (diff) | |
download | linux-1460720c5913c11415e4d7c4df5a287eb2ad3f3e.tar.xz |
cifs: Add client version details to NTLM authenticate message
The NTLM authenticate message currently sets the NTLMSSP_NEGOTIATE_VERSION
flag but does not populate the VERSION structure. This commit fixes this
bug by ensuring that the flag is set and the version details are included
in the message.
Signed-off-by: Meetakshi Setiya <msetiya@microsoft.com>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/ntlmssp.h')
-rw-r--r-- | fs/smb/client/ntlmssp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/smb/client/ntlmssp.h b/fs/smb/client/ntlmssp.h index 2c5dde2ece58..875de43b72de 100644 --- a/fs/smb/client/ntlmssp.h +++ b/fs/smb/client/ntlmssp.h @@ -133,8 +133,8 @@ typedef struct _AUTHENTICATE_MESSAGE { SECURITY_BUFFER WorkstationName; SECURITY_BUFFER SessionKey; __le32 NegotiateFlags; - /* SECURITY_BUFFER for version info not present since we - do not set the version is present flag */ + struct ntlmssp_version Version; + /* SECURITY_BUFFER */ char UserString[]; } __attribute__((packed)) AUTHENTICATE_MESSAGE, *PAUTHENTICATE_MESSAGE; |