summary refs log tree commit diff
path: root/crypto/src/asn1/DerT61String.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/DerT61String.cs')
-rw-r--r--crypto/src/asn1/DerT61String.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerT61String.cs b/crypto/src/asn1/DerT61String.cs
index 998a43bc2..05b0c62f5 100644
--- a/crypto/src/asn1/DerT61String.cs
+++ b/crypto/src/asn1/DerT61String.cs
@@ -36,7 +36,7 @@ namespace Org.BouncyCastle.Asn1
             if (obj is DerT61String derT61String)
                 return derT61String;
 
-            if (obj is IAsn1Convertible asn1Convertible)
+            if (obj is IAsn1Convertible asn1Convertible && !(obj is Asn1Object))
             {
                 Asn1Object asn1Object = asn1Convertible.ToAsn1Object();
                 if (asn1Object is DerT61String converted)