diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-04-09 11:06:27 +0300 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2018-04-13 01:12:22 +0300 |
commit | 9fdd2e0034393d6c63f830a60f6332c66927f2ff (patch) | |
tree | b55bfa6c526c08d99aa699505f760784f6427487 /fs/cifs/smb2pdu.c | |
parent | 2e96467d9eb189b38954bcbbf1ee16762914f4cb (diff) | |
download | linux-9fdd2e0034393d6c63f830a60f6332c66927f2ff.tar.xz |
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/cifs/smb2pdu.c')
-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)); |