mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 01:49:35 +00:00
[rt30024] This is a commit message
Fix a pair of memory leaks.
This commit is contained in:
parent
e563ec2e58
commit
3bedb11744
6
RELNOTES
6
RELNOTES
@ -97,6 +97,12 @@ work on other platforms. Please report any problems and suggested fixes to
|
||||
[ISC-Bugs #29852]
|
||||
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
|
||||
|
||||
! Add a check for a null pointer before calling the regexec function.
|
||||
|
@ -2403,6 +2403,8 @@ prepare_option_buffer(struct universe *universe, struct buffer *bp,
|
||||
|
||||
/* And let go of our references. */
|
||||
cleanup:
|
||||
if (lbp != NULL)
|
||||
buffer_dereference(&lbp, MDL);
|
||||
option_dereference(&option, MDL);
|
||||
|
||||
return status;
|
||||
|
@ -1519,6 +1519,8 @@ lease_to_client(struct data_string *reply_ret,
|
||||
packet_dereference(&reply.packet, MDL);
|
||||
if (reply.client_id.data != NULL)
|
||||
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.cursor = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user