1
1
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:
Yu Watanabe 2019-07-17 10:21:07 +09:00
parent 2eff7cc59c
commit 26a65470ba

View File

@ -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)