mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-04 23:11:29 +02:00
SMB2: WriteRequest: DataOffset field was set incorrectly in some cases
This commit is contained in:
parent
4043bfb5f2
commit
a0f8e0c19e
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ namespace SMBLibrary.SMB2
|
|||
DataLength = (uint)Data.Length;
|
||||
if (Data.Length > 0)
|
||||
{
|
||||
DataOffset = (ushort)(WriteChannelInfoOffset + WriteChannelInfo.Length);
|
||||
DataOffset = (ushort)(SMB2Header.Length + FixedSize + WriteChannelInfo.Length);
|
||||
}
|
||||
LittleEndianWriter.WriteUInt16(buffer, offset + 0, StructureSize);
|
||||
LittleEndianWriter.WriteUInt16(buffer, offset + 2, DataOffset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue