diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-04-09 10:06:27 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-04-13 00:12:22 +0200 |
commit | 9fdd2e0034393d6c63f830a60f6332c66927f2ff (patch) | |
tree | b55bfa6c526c08d99aa699505f760784f6427487 /fs | |
parent | cifs: add pdu_size to the TCP_Server_Info structure (diff) | |
download | linux-9fdd2e0034393d6c63f830a60f6332c66927f2ff.tar.xz linux-9fdd2e0034393d6c63f830a60f6332c66927f2ff.zip |
cifs: replace a 4 with server->vals->header_preamble_size
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/smb2pdu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index e01be06d588e..5cbdddcafaec 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -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)); |