Ensure ParseDNSNames does not return a nil slice
This commit is contained in:
parent
3b59332bf1
commit
eded2ff458
2
x509.go
2
x509.go
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue