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