projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c0a3b
)
dhcp: Fix cleanup
author
Daniel Wagner
<daniel.wagner@bmw-carit.de>
Mon, 25 Jul 2011 14:37:12 +0000
(16:37 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 25 Jul 2011 20:43:44 +0000
(22:43 +0200)
__connman_dhcp_cleanup() is called early in the shutdown process
(before device or network).
src/dhcp.c
patch
|
blob
|
history
diff --git
a/src/dhcp.c
b/src/dhcp.c
index
20fc599
..
8092db1
100644
(file)
--- 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;
}