summaryrefslogtreecommitdiffstats
path: root/apps/cms.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2021-06-24 19:23:07 +0200
committerTodd Short <todd.short@me.com>2023-02-07 17:56:27 +0100
commit98283a61f5b792dde0f0e1d9a616ec6e232b57b6 (patch)
tree0177bb9dc18950ac5e1b5a06204a8ab0a7779bd4 /apps/cms.c
parentAdditional testcase for missing return check of BIO_set_md() calls (diff)
downloadopenssl-98283a61f5b792dde0f0e1d9a616ec6e232b57b6.tar.xz
openssl-98283a61f5b792dde0f0e1d9a616ec6e232b57b6.zip
Enable some disabled __owurs
Fixes #15902 Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Todd Short <todd.short@me.com> (Merged from https://github.com/openssl/openssl/pull/15905)
Diffstat (limited to 'apps/cms.c')
-rw-r--r--apps/cms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/cms.c b/apps/cms.c
index 991377d27e..97ad9165e0 100644
--- a/apps/cms.c
+++ b/apps/cms.c
@@ -1017,7 +1017,8 @@ int cms_main(int argc, char **argv)
&& wrap_cipher != NULL) {
EVP_CIPHER_CTX *wctx;
wctx = CMS_RecipientInfo_kari_get0_ctx(ri);
- EVP_EncryptInit_ex(wctx, wrap_cipher, NULL, NULL, NULL);
+ if (EVP_EncryptInit_ex(wctx, wrap_cipher, NULL, NULL, NULL) != 1)
+ goto end;
}
}