tethering: Avoid removing dhcp server twice.
authorJukka Rissanen <jukka.rissanen@linux.intel.com>
Fri, 25 Nov 2011 15:06:27 +0000 (17:06 +0200)
committerSamuel 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

index 8d6532b..0164695 100644 (file)
@@ -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);