瀏覽代碼

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

Tal Aloni 7 年之前
父節點
當前提交
a71b97a707
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      SMBLibrary/SMB2/Commands/IOCtlRequest.cs

+ 1 - 1
SMBLibrary/SMB2/Commands/IOCtlRequest.cs

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