diff options
| -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) | |||
| 1131 | if (rc) | 1131 | if (rc) |
| 1132 | goto out; | 1132 | goto out; |
| 1133 | 1133 | ||
| 1134 | if (offsetof(struct smb2_sess_setup_rsp, Buffer) - 4 != | 1134 | if (offsetof(struct smb2_sess_setup_rsp, Buffer) - ses->server->vals->header_preamble_size != |
| 1135 | le16_to_cpu(rsp->SecurityBufferOffset)) { | 1135 | le16_to_cpu(rsp->SecurityBufferOffset)) { |
| 1136 | cifs_dbg(VFS, "Invalid security buffer offset %d\n", | 1136 | cifs_dbg(VFS, "Invalid security buffer offset %d\n", |
| 1137 | le16_to_cpu(rsp->SecurityBufferOffset)); | 1137 | le16_to_cpu(rsp->SecurityBufferOffset)); |
