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:
4191845
)
Avoid potential memory leak in code generated by 'openssl dhparam -C'.
author
Bodo Möller
<bodo@openssl.org>
Fri, 3 Mar 2000 22:24:43 +0000
(22:24 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 3 Mar 2000 22:24:43 +0000
(22:24 +0000)
apps/dhparam.c
patch
|
blob
|
history
diff --git
a/apps/dhparam.c
b/apps/dhparam.c
index b401789a1bc0bed47b0ce895782a42a87392dcd9..09316b2a1fb5e067ed2b13fa3d8db5267d2c1b86 100644
(file)
--- a/
apps/dhparam.c
+++ b/
apps/dhparam.c
@@
-464,7
+464,7
@@
bad:
printf("\tdh->g=BN_bin2bn(dh%d_g,sizeof(dh%d_g),NULL);\n",
bits,bits);
printf("\tif ((dh->p == NULL) || (dh->g == NULL))\n");
- printf("\t\t
return(NULL);
\n");
+ printf("\t\t
{ DH_free(dh); return(NULL); }
\n");
if (dh->length)
printf("\tdh->length = %d\n", dh->length);
printf("\treturn(dh);\n\t}\n");