Renamed variable

This commit is contained in:
Tal Aloni 2017-09-02 14:06:25 +03:00
parent d996cf430c
commit ae2f98fbbd
2 changed files with 4 additions and 4 deletions

View file

@ -131,8 +131,8 @@ namespace SMBLibrary.SMB1
{ {
if (buffer.Length >= 4) if (buffer.Length >= 4)
{ {
byte[] signature = ByteReader.ReadBytes(buffer, 0, 4); byte[] protocol = ByteReader.ReadBytes(buffer, 0, 4);
return ByteUtils.AreByteArraysEqual(signature, ProtocolSignature); return ByteUtils.AreByteArraysEqual(protocol, ProtocolSignature);
} }
return false; return false;
} }

View file

@ -173,8 +173,8 @@ namespace SMBLibrary.SMB2
{ {
if (buffer.Length >= 4) if (buffer.Length >= 4)
{ {
byte[] signature = ByteReader.ReadBytes(buffer, 0, 4); byte[] protocol = ByteReader.ReadBytes(buffer, 0, 4);
return ByteUtils.AreByteArraysEqual(signature, ProtocolSignature); return ByteUtils.AreByteArraysEqual(protocol, ProtocolSignature);
} }
return false; return false;
} }