From: Dr. Stephen Henson Date: Wed, 21 Nov 2012 14:02:40 +0000 (+0000) Subject: PR: 2908 X-Git-Tag: master-post-reformat~1586 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=5c1393bfc38946cb3696a10ce7bd9c2c1cd2a782;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 79c0d64c51..f5d7126af7 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; }