summaryrefslogtreecommitdiffstats
path: root/test
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 /test
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 'test')
-rw-r--r--test/evp_extra_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c
index 4eca37214d..ade3cb29f1 100644
--- a/test/evp_extra_test.c
+++ b/test/evp_extra_test.c
@@ -1759,7 +1759,7 @@ static int test_EC_keygen_with_enc(int idx)
/* Create key parameters */
if (!TEST_ptr(pctx = EVP_PKEY_CTX_new_from_name(testctx, "EC", NULL))
|| !TEST_int_gt(EVP_PKEY_paramgen_init(pctx), 0)
- || !TEST_true(EVP_PKEY_CTX_set_group_name(pctx, "P-256"))
+ || !TEST_int_gt(EVP_PKEY_CTX_set_group_name(pctx, "P-256"), 0)
|| !TEST_true(EVP_PKEY_CTX_set_ec_param_enc(pctx, enc))
|| !TEST_true(EVP_PKEY_paramgen(pctx, &params))
|| !TEST_ptr(params))