summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-07-22 15:25:32 +0200
committerTomas Mraz <tomas@openssl.org>2021-07-23 16:37:39 +0200
commit4bd60d486cbe59cc7d086985d42a5220fd12ce32 (patch)
tree9a4edab678107e470c937e927f57621f6c8aa959 /crypto/evp
parent034f9f4f6e6213a46ae8c7ac79d6e34179ac6cca (diff)
do_sigver_init: Add missing ERR_clear_last_mark()
Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/16138)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/m_sigver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c
index ae79562e2d..f21865a8c3 100644
--- a/crypto/evp/m_sigver.c
+++ b/crypto/evp/m_sigver.c
@@ -87,6 +87,7 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx,
provkey = evp_pkey_export_to_provider(locpctx->pkey, locpctx->libctx,
&tmp_keymgmt, locpctx->propquery);
if (provkey == NULL) {
+ ERR_clear_last_mark();
ERR_raise(ERR_LIB_EVP, EVP_R_INITIALIZATION_ERROR);
goto err;
}