From eded2ff458fa020db8e3307688f73b292673aec1 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Tue, 22 Mar 2016 17:17:38 -0700 Subject: [PATCH] Ensure ParseDNSNames does not return a nil slice --- x509.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x509.go b/x509.go index ad88537..45b0248 100644 --- a/x509.go +++ b/x509.go @@ -210,7 +210,7 @@ func (tbs *TBSCertificate) ParseIssuer () (RDNSequence, error) { } func (tbs *TBSCertificate) ParseDNSNames () ([]string, error) { - var dnsNames []string + dnsNames := []string{} // Extract Common Name from Subject subject, err := tbs.ParseSubject()