Commit 7d83ee14 authored by Shawn Routhier's avatar Shawn Routhier
Browse files

[rt30024] This is a commit message

Fix a pair of memory leaks.
parent 541bda8a
......@@ -84,6 +84,12 @@ work on other platforms. Please report any problems and suggested fixes to
[ISC-Bugs #29851]
CVE: CVE-2012-3571
! 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: CVE-2012-3954
Changes since 4.1-ESV-R5rc2
- None
......
......@@ -2397,6 +2397,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;
......
......@@ -1512,6 +1512,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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment