mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
SMB2: EncryptionCapabilities.GetBytes: Bugfix: Corrected Data length computation
This commit is contained in:
parent
5f4af1e35b
commit
d7d65f0ef2
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ namespace SMBLibrary.SMB2
|
||||||
|
|
||||||
public byte[] GetBytes()
|
public byte[] GetBytes()
|
||||||
{
|
{
|
||||||
int length = 2 * Ciphers.Count * 2;
|
int length = 2 + Ciphers.Count * 2;
|
||||||
byte[] buffer = new byte[length];
|
byte[] buffer = new byte[length];
|
||||||
LittleEndianWriter.WriteUInt16(buffer, 0, (ushort)Ciphers.Count);
|
LittleEndianWriter.WriteUInt16(buffer, 0, (ushort)Ciphers.Count);
|
||||||
for (int index = 0; index < Ciphers.Count; index++)
|
for (int index = 0; index < Ciphers.Count; index++)
|
||||||
|
|
Loading…
Add table
Reference in a new issue