mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
network: fix use after free()
The hashmap will be accessed by client_stop().
This commit is contained in:
parent
2eff7cc59c
commit
26a65470ba
@ -1395,7 +1395,7 @@ void manager_free(Manager *m) {
|
||||
|
||||
while ((a = hashmap_first_key(m->dhcp6_prefixes)))
|
||||
(void) dhcp6_prefix_remove(m, a);
|
||||
hashmap_free(m->dhcp6_prefixes);
|
||||
m->dhcp6_prefixes = hashmap_free(m->dhcp6_prefixes);
|
||||
|
||||
while ((link = hashmap_steal_first(m->links))) {
|
||||
if (link->dhcp6_client)
|
||||
|
Loading…
Reference in New Issue
Block a user