Skip to content

Commit 1c75260

Browse files
rootroot
authored andcommitted
fix error check when check signature
1 parent 3cc617f commit 1c75260

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

selfsign/selfsign.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ func parseCertificateRequest(priv crypto.Signer, csrBytes []byte) (template *x50
3232
return
3333
}
3434

35-
csr.CheckSignature()
36-
if err != nil {
35+
if err = csr.CheckSignature(); err != nil {
3736
err = cferr.Wrap(cferr.CSRError, cferr.KeyMismatch, err)
3837
return
3938
}

0 commit comments

Comments
 (0)