mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Use length of actual hash.
This commit is contained in:
@@ -882,7 +882,7 @@ namespace Renci.SshNet
|
||||
}
|
||||
else
|
||||
{
|
||||
var data = new byte[packetLength + (_clientMac.HashSize/8)];
|
||||
var data = new byte[packetLength + hash.Length];
|
||||
Buffer.BlockCopy(packetData, packetDataOffset, data, 0, packetLength);
|
||||
Buffer.BlockCopy(hash, 0, data, packetLength, hash.Length);
|
||||
SendPacket(data, 0, data.Length);
|
||||
|
||||
Reference in New Issue
Block a user