From b79e9ba4131802ae585c7c6f23183fd68c93ac82 Mon Sep 17 00:00:00 2001 From: Jukka Rissanen Date: Fri, 25 Nov 2011 17:06:27 +0200 Subject: [PATCH] tethering: Avoid removing dhcp server twice. The tethering_dhcp_server pointer needs to be cleared as otherwise the __connman_tethering_cleanup() will call it again. --- src/tethering.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.7.4