Skip to content

Commit

Permalink
fix error check when check signature
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Jan 24, 2021
1 parent 3cc617f commit 1c75260
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfsign/selfsign.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ func parseCertificateRequest(priv crypto.Signer, csrBytes []byte) (template *x50
return
}

csr.CheckSignature()
if err != nil {
if err = csr.CheckSignature(); err != nil {
err = cferr.Wrap(cferr.CSRError, cferr.KeyMismatch, err)
return
}
Expand Down

0 comments on commit 1c75260

Please sign in to comment.