diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2011-11-25 17:06:27 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-11-28 17:55:13 +0100 |
commit | b79e9ba4131802ae585c7c6f23183fd68c93ac82 (patch) | |
tree | 64c05a4084485ca2c6f10ff3ff6fb125c263166b /src/tethering.c | |
parent | 80e2e08b4887c4e133d3ca7d42ac844fbb974bb8 (diff) | |
download | connman-b79e9ba4131802ae585c7c6f23183fd68c93ac82.tar.gz connman-b79e9ba4131802ae585c7c6f23183fd68c93ac82.tar.bz2 connman-b79e9ba4131802ae585c7c6f23183fd68c93ac82.zip |
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.
Diffstat (limited to 'src/tethering.c')
-rw-r--r-- | src/tethering.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tethering.c b/src/tethering.c index 8d6532b7..01646958 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); |