diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-12-02 16:33:02 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-12-05 13:04:18 +0100 |
commit | b794476df71441a6d30740ab9fadcc0f6d18d3d6 (patch) | |
tree | c5be0545c02de2e90ceed4bcc5b1bb96e546cc1a /test/evp_extra_test.c | |
parent | 4c3fadfe57b94f71fa83786726046b8833997c7c (diff) |
Fix the check of EVP_PKEY_decrypt_init
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19819)
Diffstat (limited to 'test/evp_extra_test.c')
-rw-r--r-- | test/evp_extra_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index 1e62e2b6a4..7f82a0cdf2 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -2040,7 +2040,7 @@ static int test_EVP_SM2(void) sizeof(kMsg)))) goto done; - if (!TEST_true(EVP_PKEY_decrypt_init(cctx))) + if (!TEST_int_gt(EVP_PKEY_decrypt_init(cctx), 0)) goto done; if (!TEST_true(EVP_PKEY_CTX_set_params(cctx, sparams))) |