summary refs log tree commit diff
path: root/crypto/src/asn1/ess/ESSCertIDv2.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/asn1/ess/ESSCertIDv2.cs')
-rw-r--r--crypto/src/asn1/ess/ESSCertIDv2.cs7
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/src/asn1/ess/ESSCertIDv2.cs b/crypto/src/asn1/ess/ESSCertIDv2.cs
index 35ce699e8..1711a769c 100644
--- a/crypto/src/asn1/ess/ESSCertIDv2.cs
+++ b/crypto/src/asn1/ess/ESSCertIDv2.cs
@@ -133,12 +133,7 @@ namespace Org.BouncyCastle.Asn1.Ess
             }
 
             v.Add(new DerOctetString(certHash).ToAsn1Object());
-
-            if (issuerSerial != null)
-            {
-                v.Add(issuerSerial);
-            }
-
+            v.AddOptional(issuerSerial);
             return new DerSequence(v);
         }