From: Dr. Stephen Henson Date: Wed, 21 Nov 2012 14:01:38 +0000 (+0000) Subject: PR: 2908 X-Git-Tag: OpenSSL_0_9_8y~30 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c571a3e984e2d9f625eac4a141f48bcfd4084a3a;p=oweals%2Fopenssl.git PR: 2908 Submitted by: Dmitry Belyavsky Fix DH double free if parameter generation fails. --- 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; }