aboutsummaryrefslogtreecommitdiff
path: root/crypto.go
diff options
context:
space:
mode:
Diffstat (limited to 'crypto.go')
-rw-r--r--crypto.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto.go b/crypto.go
index 47c16bb..34451cc 100644
--- a/crypto.go
+++ b/crypto.go
@@ -30,8 +30,8 @@ func (lp *LogParameters) buildChainFromDerList(derChain [][]byte) ([]*x509.Certi
if err != nil {
return nil, fmt.Errorf("chain verification failed: %v", err)
}
- if len(chains) == 0 {
- return nil, fmt.Errorf("bad certificate chain length: empty")
+ if len(chains) == 0 { // better safe than sorry
+ return nil, fmt.Errorf("chain verification failed: no path")
}
// there might be several valid chains