Skip to content

Commit

Permalink
Update pkg/verify/sct.go
Browse files Browse the repository at this point in the history
Co-authored-by: Zach Steindler <[email protected]>
Signed-off-by: Cody Soyland <[email protected]>
  • Loading branch information
codysoyland and steiza authored Oct 15, 2024
1 parent 0655662 commit 95fbc27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/verify/sct.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
// timestamps using the TrustedMaterial's FulcioCertificateAuthorities() and
// CTLogs()
func VerifySignedCertificateTimestamp(chains [][]*x509.Certificate, threshold int, trustedMaterial root.TrustedMaterial) error { // nolint: revive
if len(chains) == 0 && len(chains[0]) == 0 && chains[0][0] == nil {
if len(chains) == 0 || len(chains[0]) == 0 || chains[0][0] == nil {
return errors.New("no chains provided")
}
// The first certificate in the chain is always the leaf certificate
Expand Down

0 comments on commit 95fbc27

Please sign in to comment.