|
@@ -1131,7 +1131,7 @@ SMB2_sess_auth_rawntlmssp_negotiate(struct SMB2_sess_data *sess_data)
|
|
|
if (rc)
|
|
|
goto out;
|
|
|
|
|
|
- if (offsetof(struct smb2_sess_setup_rsp, Buffer) - 4 !=
|
|
|
+ if (offsetof(struct smb2_sess_setup_rsp, Buffer) - ses->server->vals->header_preamble_size !=
|
|
|
le16_to_cpu(rsp->SecurityBufferOffset)) {
|
|
|
cifs_dbg(VFS, "Invalid security buffer offset %d\n",
|
|
|
le16_to_cpu(rsp->SecurityBufferOffset));
|