smb311: correct incorrect offset field in compression header

The offset field in the compression header is 32 bits not 16.

Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Reported-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
Steve French 2024-03-19 15:59:38 -05:00
parent 5b142b37c7
commit 68c5818a27

View File

@ -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;