projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
o_time.c: use gmtime_s with MSVC
[openssl.git]
/
crypto
/
cms
/
cms_sd.c
diff --git
a/crypto/cms/cms_sd.c
b/crypto/cms/cms_sd.c
index 721ffd5afb8535a1fd820f676d6ea0a945b1ef50..a41aca8e1277c1d8a230ba8dd956c083f40b1b88 100644
(file)
--- a/
crypto/cms/cms_sd.c
+++ b/
crypto/cms/cms_sd.c
@@
-857,6
+857,8
@@
int CMS_SignerInfo_verify_content(CMS_SignerInfo *si, BIO *chain)
} else {
const EVP_MD *md = EVP_MD_CTX_md(&mctx);
pkctx = EVP_PKEY_CTX_new(si->pkey, NULL);
+ if (pkctx == NULL)
+ goto err;
if (EVP_PKEY_verify_init(pkctx) <= 0)
goto err;
if (EVP_PKEY_CTX_set_signature_md(pkctx, md) <= 0)