projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e55988b
)
PR: 2908
author
Dr. Stephen Henson
<steve@openssl.org>
Wed, 21 Nov 2012 14:01:38 +0000
(14:01 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 21 Nov 2012 14:01:38 +0000
(14:01 +0000)
Submitted by: Dmitry Belyavsky <beldmit@gmail.com>
Fix DH double free if parameter generation fails.
apps/dhparam.c
patch
|
blob
|
history
diff --git
a/apps/dhparam.c
b/apps/dhparam.c
index 465cdfe77bfac05d4bbd0890d88b30d3522686d6..4a9594ea4650b1bd54a4a3f55d2f8c4a61dfaa27 100644
(file)
--- 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;
}