summary refs log tree commit diff
path: root/crypto/src/asn1/x509
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/x509')
-rw-r--r--crypto/src/asn1/x509/X509Name.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/x509/X509Name.cs b/crypto/src/asn1/x509/X509Name.cs
index d0e304798..3aa2f4e53 100644
--- a/crypto/src/asn1/x509/X509Name.cs
+++ b/crypto/src/asn1/x509/X509Name.cs
@@ -704,7 +704,7 @@ namespace Org.BouncyCastle.Asn1.X509
                     }
                     else
                     {
-                        vec.Add(new DerSet(sVec));
+                        vec.Add(DerSet.FromVector(sVec));
                         sVec = new Asn1EncodableVector();
                     }
 
@@ -716,7 +716,7 @@ namespace Org.BouncyCastle.Asn1.X509
                     lstOid = oid;
                 }
 
-                vec.Add(new DerSet(sVec));
+                vec.Add(DerSet.FromVector(sVec));
 
                 seq = new DerSequence(vec);
             }