We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d3a6e4 commit 3988955Copy full SHA for 3988955
1 file changed
internal/certificatetransparency/ct-parser.go
@@ -117,6 +117,11 @@ func leafCertFromX509cert(cert x509.Certificate) certstream.LeafCert {
117
IsCA: cert.IsCA,
118
}
119
120
+ // The zero value of DomainsEntry.Data is nil, but we want an empty array - especially for json marshalling later.
121
+ if leafCert.AllDomains == nil {
122
+ leafCert.AllDomains = []string{}
123
+ }
124
+
125
leafCert.Subject = buildSubject(cert.Subject)
126
if *leafCert.Subject.CN != "" && !leafCert.IsCA {
127
domainAlreadyAdded := false
0 commit comments