2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-22 09:57:20 +00:00

[rt30024] This is a commit message

Fix a pair of memory leaks.
This commit is contained in:
Shawn Routhier 2012-07-11 14:50:35 -07:00
parent e563ec2e58
commit 3bedb11744
3 changed files with 10 additions and 0 deletions

View File

@ -97,6 +97,12 @@ work on other platforms. Please report any problems and suggested fixes to
[ISC-Bugs #29852] [ISC-Bugs #29852]
CVE: CVE-2012-3570 CVE: CVE-2012-3570
! A pair of memory leaks were found and fixed. Thanks to
Glen Eustace of Massey University, New Zealand for finding
this issue.
[ISC-Bugs #30024]
CVE: TBD
Changes since 4.2.3 Changes since 4.2.3
! Add a check for a null pointer before calling the regexec function. ! Add a check for a null pointer before calling the regexec function.

View File

@ -2403,6 +2403,8 @@ prepare_option_buffer(struct universe *universe, struct buffer *bp,
/* And let go of our references. */ /* And let go of our references. */
cleanup: cleanup:
if (lbp != NULL)
buffer_dereference(&lbp, MDL);
option_dereference(&option, MDL); option_dereference(&option, MDL);
return status; return status;

View File

@ -1519,6 +1519,8 @@ lease_to_client(struct data_string *reply_ret,
packet_dereference(&reply.packet, MDL); packet_dereference(&reply.packet, MDL);
if (reply.client_id.data != NULL) if (reply.client_id.data != NULL)
data_string_forget(&reply.client_id, MDL); data_string_forget(&reply.client_id, MDL);
if (packet_oro.buffer != NULL)
data_string_forget(&packet_oro, MDL);
reply.renew = reply.rebind = reply.prefer = reply.valid = 0; reply.renew = reply.rebind = reply.prefer = reply.valid = 0;
reply.cursor = 0; reply.cursor = 0;
} }