mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-22 18:07:25 +00:00
[master] Address memory leak in dhclient code.
address memory leak
This commit is contained in:
parent
a89fd0cd84
commit
b05e05b731
4
RELNOTES
4
RELNOTES
@ -170,6 +170,10 @@ by Eric Young (eay@cryptsoft.com).
|
|||||||
in a pool are used.
|
in a pool are used.
|
||||||
[ISC-Bugs #34487]
|
[ISC-Bugs #34487]
|
||||||
|
|
||||||
|
- Add code to properly dereference a pointer in the dhclient code
|
||||||
|
on an error condition.
|
||||||
|
[ISC-Bugs #36194
|
||||||
|
|
||||||
Changes since 4.3.0rc1
|
Changes since 4.3.0rc1
|
||||||
|
|
||||||
- None
|
- None
|
||||||
|
@ -2413,9 +2413,11 @@ make_client_options(struct client_state *client, struct client_lease *lease,
|
|||||||
dhcp_universe.code_hash,
|
dhcp_universe.code_hash,
|
||||||
&code, 0, MDL) &&
|
&code, 0, MDL) &&
|
||||||
make_const_option_cache(&oc, &bp, NULL, len,
|
make_const_option_cache(&oc, &bp, NULL, len,
|
||||||
option, MDL)))
|
option, MDL))) {
|
||||||
log_error("can't make option cache");
|
if (bp != NULL)
|
||||||
else {
|
buffer_dereference(&bp, MDL);
|
||||||
|
log_error ("can't make option cache");
|
||||||
|
} else {
|
||||||
save_option(&dhcp_universe, *op, oc);
|
save_option(&dhcp_universe, *op, oc);
|
||||||
option_cache_dereference(&oc, MDL);
|
option_cache_dereference(&oc, MDL);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user