diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-06 19:43:25 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-03-06 19:43:25 +0700 |
commit | f93624749322b60eb96c80d466ea234a1a46d4c4 (patch) | |
tree | 780a228fa70aa25c44842ee5d20538f453a620f2 /crypto/src/tls/TlsUtilities.cs | |
parent | Avoid recoding issuer name (diff) | |
download | BouncyCastle.NET-ed25519-f93624749322b60eb96c80d466ea234a1a46d4c4.tar.xz |
Refactoring in Asn1
Diffstat (limited to 'crypto/src/tls/TlsUtilities.cs')
-rw-r--r-- | crypto/src/tls/TlsUtilities.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/tls/TlsUtilities.cs b/crypto/src/tls/TlsUtilities.cs index d187aeed2..0d2a971a0 100644 --- a/crypto/src/tls/TlsUtilities.cs +++ b/crypto/src/tls/TlsUtilities.cs @@ -971,7 +971,7 @@ namespace Org.BouncyCastle.Tls Asn1Object result = asn1In.ReadObject(); if (null == result) throw new TlsFatalAlert(AlertDescription.decode_error); - if (asn1In.Length != asn1In.Position) + if (encoding.Length != asn1In.Position) throw new TlsFatalAlert(AlertDescription.decode_error); return result; } |