mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 01:07:21 +01:00
Plug possible memory leaks in the previous patch.
Two DH_free() calls were accidentally removed. Pointyhat to: jkim
This commit is contained in:
parent
a5f8e6f658
commit
8c9735fbe0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358413
@ -92,6 +92,7 @@ get_dh512()
|
||||
dhg_bn = BN_bin2bn(dh512_g, sizeof(dh512_g), NULL);
|
||||
if ((dhp_bn == NULL) || (dhg_bn == NULL))
|
||||
{
|
||||
DH_free(dh);
|
||||
BN_free(dhp_bn);
|
||||
BN_free(dhg_bn);
|
||||
return NULL;
|
||||
@ -155,6 +156,7 @@ get_dh2048()
|
||||
dhg_bn = BN_bin2bn(dh2048_g, sizeof(dh2048_g), NULL);
|
||||
if ((dhp_bn == NULL) || (dhg_bn == NULL))
|
||||
{
|
||||
DH_free(dh);
|
||||
BN_free(dhp_bn);
|
||||
BN_free(dhg_bn);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user