Bugfix: DerEncodingHelper.WriteLength was writing incorrect length

This commit is contained in:
Tal Aloni 2017-05-24 18:25:25 +03:00
parent 6c08f23751
commit 4fffe28a83

View file

@ -46,7 +46,7 @@ namespace SMBLibrary.Authentication.GSSAPI
{ {
byte value = (byte)(length % 256); byte value = (byte)(length % 256);
values.Add(value); values.Add(value);
length = value / 256; length = length / 256;
} }
while (length > 0); while (length > 0);
values.Reverse(); values.Reverse();