diff options
Diffstat (limited to 'src/crypto/x509/verify.go')
-rw-r--r-- | src/crypto/x509/verify.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/x509/verify.go b/src/crypto/x509/verify.go index 345d434453c..56a1a1725cc 100644 --- a/src/crypto/x509/verify.go +++ b/src/crypto/x509/verify.go @@ -899,7 +899,7 @@ func (c *Certificate) buildChains(currentChain []*Certificate, sigChecks *int, o ) considerCandidate := func(certType int, candidate *Certificate) { - if alreadyInChain(candidate, currentChain) { + if candidate.PublicKey == nil || alreadyInChain(candidate, currentChain) { return } |