diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2022-05-28 18:05:28 +0200 |
---|---|---|
committer | Todd Short <todd.short@me.com> | 2022-06-02 16:36:56 +0200 |
commit | e85bef981c037a6ebc0ca39f61c11bd79ed89fb3 (patch) | |
tree | 1d5dd824b0bf994d443929d35b7b6670a4c7d40d /apps/dhparam.c | |
parent | Fix the checks of UI_add_input_string (diff) | |
download | openssl-e85bef981c037a6ebc0ca39f61c11bd79ed89fb3.tar.xz openssl-e85bef981c037a6ebc0ca39f61c11bd79ed89fb3.zip |
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/dhparam.c')
-rw-r--r-- | apps/dhparam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c index 764f7929d4..c1d7168a60 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -329,7 +329,7 @@ int dhparam_main(int argc, char **argv) BIO_printf(bio_err, "Error, failed to check DH parameters\n"); goto end; } - if (!EVP_PKEY_param_check(ctx)) { + if (EVP_PKEY_param_check(ctx) <= 0) { BIO_printf(bio_err, "Error, invalid parameters generated\n"); goto end; } |