From 35689568e18459597cfefd5faebf3270be71b238 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 25 Jul 2011 16:37:12 +0200 Subject: [PATCH] dhcp: Fix cleanup __connman_dhcp_cleanup() is called early in the shutdown process (before device or network). --- src/dhcp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dhcp.c b/src/dhcp.c index 20fc599..8092db1 100644 --- a/src/dhcp.c +++ b/src/dhcp.c @@ -461,6 +461,9 @@ void __connman_dhcp_stop(struct connman_network *network) { DBG(""); + if (network_table == NULL) + return; + g_hash_table_remove(network_table, network); } @@ -479,4 +482,5 @@ void __connman_dhcp_cleanup(void) DBG(""); g_hash_table_destroy(network_table); + network_table = NULL; } -- 2.7.4