SMB2: IOCtlRequest: OutputOffset field was set incorrectly in some cases

This commit is contained in:
Tal Aloni 2017-09-22 12:05:53 +03:00
parent a0f8e0c19e
commit a71b97a707

View file

@ -68,7 +68,7 @@ namespace SMBLibrary.SMB2
}
if (Output.Length > 0)
{
OutputOffset = InputOffset + (uint)Input.Length;
OutputOffset = SMB2Header.Length + FixedLength + (uint)Input.Length;
}
LittleEndianWriter.WriteUInt16(buffer, offset + 0, StructureSize);
LittleEndianWriter.WriteUInt16(buffer, offset + 2, Reserved);