From: Daniel Wagner <[email protected]>

__connman_dhcp_cleanup() is called early in the shutdown process
(before device or network).
---

argh, this one should work better...


 src/dhcp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

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;
 }
-- 
1.7.6

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to