Thanks to Steinar Haug for the suggestion.
[ISC-Bugs #36033]
+- Add code to properly dereference a pointer in the dhclient code
+ on an error condition.
+ [ISC-Bugs #36194
+
Changes since 4.1-ESV-R9rc1
- None
dhcp_universe.code_hash,
&code, 0, MDL) &&
make_const_option_cache(&oc, &bp, NULL, len,
- option, MDL)))
+ option, MDL))) {
+ if (bp != NULL)
+ buffer_dereference(&bp, MDL);
log_error ("can't make option cache");
- else {
+ } else {
save_option (&dhcp_universe, *op, oc);
option_cache_dereference (&oc, MDL);
}