Procházet zdrojové kódy

Bugfix: DerEncodingHelper.WriteLength was writing incorrect length

Tal Aloni před 7 roky
rodič
revize
4fffe28a83

+ 1 - 1
SMBLibrary/Authentication/GSSAPI/SPNEGO/DerEncodingHelper.cs

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