Ensure ParseDNSNames does not return a nil slice

This commit is contained in:
Andrew Ayer 2016-03-22 17:17:38 -07:00
parent 3b59332bf1
commit eded2ff458
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ func (tbs *TBSCertificate) ParseIssuer () (RDNSequence, error) {
} }
func (tbs *TBSCertificate) ParseDNSNames () ([]string, error) { func (tbs *TBSCertificate) ParseDNSNames () ([]string, error) {
var dnsNames []string dnsNames := []string{}
// Extract Common Name from Subject // Extract Common Name from Subject
subject, err := tbs.ParseSubject() subject, err := tbs.ParseSubject()