diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-06-24 19:23:07 +0200 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2023-02-07 17:56:27 +0100 |
commit | 98283a61f5b792dde0f0e1d9a616ec6e232b57b6 (patch) | |
tree | 0177bb9dc18950ac5e1b5a06204a8ab0a7779bd4 /apps/cms.c | |
parent | Additional testcase for missing return check of BIO_set_md() calls (diff) | |
download | openssl-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.c | 3 |
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; } } |