diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-11-14 23:52:56 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-16 17:32:17 +0100 |
commit | 6e0b05f3008a3f22105fd2bed9314b0bfa381f93 (patch) | |
tree | bd96f31a34dda7b067425fac5a8992d879327390 /apps | |
parent | e2e5e72d5aec4d8d633cc5e9930f762da7973ab6 (diff) |
EVP_PKEY_paramgen_init: fix return check
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17030)
Diffstat (limited to 'apps')
-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 db9e964cf0..0e90698cd6 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -194,7 +194,7 @@ int dhparam_main(int argc, char **argv) "Generating %s parameters, %d bit long %sprime\n", alg, num, dsaparam ? "" : "safe "); - if (!EVP_PKEY_paramgen_init(ctx)) { + if (EVP_PKEY_paramgen_init(ctx) <= 0) { BIO_printf(bio_err, "Error, unable to initialise %s parameters\n", alg); |