Fix a pair of memory leaks.
[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.
/* And let go of our references. */
cleanup:
+ if (lbp != NULL)
+ buffer_dereference(&lbp, MDL);
option_dereference(&option, MDL);
return status;
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;
}