summary refs log tree commit diff
path: root/crypto/src/tls/TlsUtilities.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-03-06 19:43:25 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-03-06 19:43:25 +0700
commitf93624749322b60eb96c80d466ea234a1a46d4c4 (patch)
tree780a228fa70aa25c44842ee5d20538f453a620f2 /crypto/src/tls/TlsUtilities.cs
parentAvoid recoding issuer name (diff)
downloadBouncyCastle.NET-ed25519-f93624749322b60eb96c80d466ea234a1a46d4c4.tar.xz
Refactoring in Asn1
Diffstat (limited to 'crypto/src/tls/TlsUtilities.cs')
-rw-r--r--crypto/src/tls/TlsUtilities.cs2
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;
             }