Skip to content

Commit 9fdd2e0

Browse files
Ronnie Sahlbergsmfrench
authored andcommitted
cifs: replace a 4 with server->vals->header_preamble_size
Signed-off-by: Ronnie Sahlberg <[email protected]> Signed-off-by: Steve French <[email protected]> Reviewed-by: Pavel Shilovsky <[email protected]>
1 parent 2e96467 commit 9fdd2e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/cifs/smb2pdu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ SMB2_sess_auth_rawntlmssp_negotiate(struct SMB2_sess_data *sess_data)
11311131
if (rc)
11321132
goto out;
11331133

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 !=
11351135
le16_to_cpu(rsp->SecurityBufferOffset)) {
11361136
cifs_dbg(VFS, "Invalid security buffer offset %d\n",
11371137
le16_to_cpu(rsp->SecurityBufferOffset));

0 commit comments

Comments
 (0)