From 26a65470bafddce12103b4702623a74829501777 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 17 Jul 2019 10:21:07 +0900 Subject: network: fix use after free() The hashmap will be accessed by client_stop(). --- src/network/networkd-manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 51cc8f654b..6037e8564f 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -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) -- cgit v1.2.3