Commit 68c5818a authored by Steve French's avatar Steve French

smb311: correct incorrect offset field in compression header

The offset field in the compression header is 32 bits not 16.
Reviewed-by: default avatarBharath SM <bharathsm@microsoft.com>
Reported-by: default avatarEnzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 5b142b37
...@@ -227,7 +227,7 @@ struct smb2_compression_hdr { ...@@ -227,7 +227,7 @@ struct smb2_compression_hdr {
__le32 OriginalCompressedSegmentSize; __le32 OriginalCompressedSegmentSize;
__le16 CompressionAlgorithm; __le16 CompressionAlgorithm;
__le16 Flags; __le16 Flags;
__le16 Offset; /* this is the size of the uncompressed SMB2 header below */ __le32 Offset; /* this is the size of the uncompressed SMB2 header below */
/* uncompressed SMB2 header (READ or WRITE) goes here */ /* uncompressed SMB2 header (READ or WRITE) goes here */
/* compressed data goes here */ /* compressed data goes here */
} __packed; } __packed;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment