diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-05-29 00:05:28 +0800 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-06-02 10:36:56 -0400 |
commit | e85bef981c037a6ebc0ca39f61c11bd79ed89fb3 (patch) | |
tree | 1d5dd824b0bf994d443929d35b7b6670a4c7d40d /apps/ecparam.c | |
parent | 5755c11fd6e50028946e6e17c835afcd56995699 (diff) |
Fix the checks of EVP_PKEY_param_check
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/18424)
Diffstat (limited to 'apps/ecparam.c')
-rw-r--r-- | apps/ecparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ecparam.c b/apps/ecparam.c index 7ee19349dc..608014be8f 100644 --- a/apps/ecparam.c +++ b/apps/ecparam.c @@ -283,7 +283,7 @@ int ecparam_main(int argc, char **argv) goto end; } pctx = EVP_PKEY_CTX_new_from_pkey(NULL, params_key, NULL); - if (pctx == NULL || !EVP_PKEY_param_check(pctx)) { + if (pctx == NULL || EVP_PKEY_param_check(pctx) <= 0) { BIO_printf(bio_err, "failed\n"); goto end; } |