The tethering_dhcp_server pointer needs to be cleared as
otherwise the __connman_tethering_cleanup() will call it again.
---
src/tethering.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/tethering.c b/src/tethering.c
index 8d6532b..0164695 100644
--- 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);
--
1.7.1
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman