summaryrefslogtreecommitdiffstats
path: root/crypto/cms
diff options
context:
space:
mode:
authorPeiwei Hu <jlu.hpw@foxmail.com>2022-05-24 23:27:49 +0800
committerTomas Mraz <tomas@openssl.org>2022-06-02 11:09:33 +0200
commitad8d425a5ffa66b062a362e53267a7ceb94c51a4 (patch)
tree9d74dd288afced6e9831aa26d9fe251e7f913123 /crypto/cms
parentbce02f9c45d10d53f61e3423cbd5c78965340340 (diff)
Fix the erroneous checks of EVP_PKEY_CTX_set_group_name
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/18399) (cherry picked from commit 56876ae952b96b4a83266f6b2ec1393f599015d6)
Diffstat (limited to 'crypto/cms')
-rw-r--r--crypto/cms/cms_ec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_ec.c b/crypto/cms/cms_ec.c
index b07af92bad..fad750c791 100644
--- a/crypto/cms/cms_ec.c
+++ b/crypto/cms/cms_ec.c
@@ -48,7 +48,7 @@ static EVP_PKEY *pkey_type2param(int ptype, const void *pval,
if (pctx == NULL || EVP_PKEY_paramgen_init(pctx) <= 0)
goto err;
if (OBJ_obj2txt(groupname, sizeof(groupname), poid, 0) <= 0
- || !EVP_PKEY_CTX_set_group_name(pctx, groupname)) {
+ || EVP_PKEY_CTX_set_group_name(pctx, groupname) <= 0) {
ERR_raise(ERR_LIB_CMS, CMS_R_DECODE_ERROR);
goto err;
}