projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80e2e08
)
tethering: Avoid removing dhcp server twice.
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Fri, 25 Nov 2011 15:06:27 +0000
(17:06 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 28 Nov 2011 16:55:13 +0000
(17:55 +0100)
The tethering_dhcp_server pointer needs to be cleared as
otherwise the __connman_tethering_cleanup() will call it again.
src/tethering.c
patch
|
blob
|
history
diff --git
a/src/tethering.c
b/src/tethering.c
index
8d6532b
..
0164695
100644
(file)
--- a/
src/tethering.c
+++ b/
src/tethering.c
@@
-390,6
+390,8
@@
void __connman_tethering_set_disabled(void)
dhcp_server_stop(tethering_dhcp_server);
+ tethering_dhcp_server = NULL;
+
disable_bridge(BRIDGE_NAME);
remove_bridge(BRIDGE_NAME);