From 6f22af8bf82670836db246d23cb796f9c77fb59f Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Thu, 2 Feb 2017 23:00:52 +0200 Subject: [PATCH] NTTransactionRequest: Improved readability --- SMBLibrary/SMB1/Commands/NTTransactRequest.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SMBLibrary/SMB1/Commands/NTTransactRequest.cs b/SMBLibrary/SMB1/Commands/NTTransactRequest.cs index 7d96164..475e2f3 100644 --- a/SMBLibrary/SMB1/Commands/NTTransactRequest.cs +++ b/SMBLibrary/SMB1/Commands/NTTransactRequest.cs @@ -1,4 +1,4 @@ -/* Copyright (C) 2014 Tal Aloni . All rights reserved. +/* Copyright (C) 2014-2017 Tal Aloni . All rights reserved. * * You can redistribute this program and/or modify it under the terms of * the GNU Lesser Public License as published by the Free Software Foundation, @@ -92,7 +92,7 @@ namespace SMBLibrary.SMB1 LittleEndianWriter.WriteUInt16(this.SMBParameters, ref writeOffset, (ushort)Function); ByteWriter.WriteBytes(this.SMBParameters, ref writeOffset, Setup); - this.SMBData = new byte[parameterCount + dataCount + padding1 + padding2]; + this.SMBData = new byte[padding1 + parameterCount + padding2 + dataCount]; ByteWriter.WriteBytes(this.SMBData, padding1, TransParameters); ByteWriter.WriteBytes(this.SMBData, (int)(padding1 + parameterCount + padding2), TransData);