diff --git a/verify.go b/verify.go index c401dc2..143ece9 100644 --- a/verify.go +++ b/verify.go @@ -51,7 +51,9 @@ func caBundle(caPath string) *x509.CertPool { } func verifyChain(certs []*x509.Certificate, dnsName, caPath string) simpleVerification { - result := simpleVerification{} + result := simpleVerification{ + Chains: [][]simpleVerifyCert{}, + } intermediates := x509.NewCertPool() for i := 1; i < len(certs); i++ {