summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-11-21 14:01:38 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-11-21 14:01:38 +0000
commitc571a3e984e2d9f625eac4a141f48bcfd4084a3a (patch)
tree60278fe78bef467ac52ccc8e8ec65c101be5ea8b /apps
parente55988bb6023bcbae931f1f0f485d66fabaea801 (diff)
PR: 2908
Submitted by: Dmitry Belyavsky <beldmit@gmail.com> Fix DH double free if parameter generation fails.
Diffstat (limited to 'apps')
-rw-r--r--apps/dhparam.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/apps/dhparam.c b/apps/dhparam.c
index 465cdfe77b..4a9594ea46 100644
--- a/apps/dhparam.c
+++ b/apps/dhparam.c
@@ -332,7 +332,6 @@ bad:
BIO_printf(bio_err,"This is going to take a long time\n");
if(!dh || !DH_generate_parameters_ex(dh, num, g, &cb))
{
- if(dh) DH_free(dh);
ERR_print_errors(bio_err);
goto end;
}