Skip to content

Commit

Permalink
print log
Browse files Browse the repository at this point in the history
  • Loading branch information
LordNoteworthy committed Oct 30, 2024
1 parent 1ce03d0 commit fee5960
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion security.go
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ func (pe *File) parseSecurityDirectory(rva, size uint32) error {

// Verify the signature. This will also verify the chain of trust of the
// the end-entity signer cert to one of the root in the trust store.
if err == nil {
if err != nil {
pe.logger.Errorf("failed to loadSystemRoots: %v", err)
} else {
err = pkcs.VerifyWithChain(certPool)
if err == nil {
certValid = true
Expand Down

0 comments on commit fee5960

Please sign in to comment.