diff options
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 982b2db549..6b8546e93b 100644 --- a/apps/dhparam.c +++ b/apps/dhparam.c @@ -383,7 +383,7 @@ static EVP_PKEY *dsa_to_dh(EVP_PKEY *dh) ctx = EVP_PKEY_CTX_new_from_name(NULL, "DHX", NULL); if (ctx == NULL - || !EVP_PKEY_fromdata_init(ctx) + || EVP_PKEY_fromdata_init(ctx) <= 0 || !EVP_PKEY_fromdata(ctx, &pkey, EVP_PKEY_KEY_PARAMETERS, params)) { BIO_printf(bio_err, "Error, failed to set DH parameters\n"); goto err; |