diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-05-24 23:27:49 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-06-02 11:06:35 +0200 |
commit | 56876ae952b96b4a83266f6b2ec1393f599015d6 (patch) | |
tree | 6e3f1b98f09627be00ac2ba62e8ee5012be3c449 /crypto/cms | |
parent | 1c5a4e3b5e05494876ebba9d8272d2cbca1e20a3 (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)
Diffstat (limited to 'crypto/cms')
-rw-r--r-- | crypto/cms/cms_ec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cms/cms_ec.c b/crypto/cms/cms_ec.c index 082fb5c4c9..be9c6ff893 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; } |