From 1c7526010688af74c36733d69dcccebd0c23c19e Mon Sep 17 00:00:00 2001 From: root Date: Sun, 24 Jan 2021 20:22:24 +0800 Subject: [PATCH] fix error check when check signature --- selfsign/selfsign.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/selfsign/selfsign.go b/selfsign/selfsign.go index 00fe2abe4..c7f71d237 100644 --- a/selfsign/selfsign.go +++ b/selfsign/selfsign.go @@ -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 }