Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1170 from qinghai5060/fixErrorCheck
fix error check when check signature
  • Loading branch information
nickysemenza committed Jan 24, 2021
2 parents 3cc617f + 1c75260 commit 57882e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions selfsign/selfsign.go
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 57882e0

Please sign in to comment.