summaryrefslogtreecommitdiff
path: root/vpn/plugins/vpn.c
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-30 09:30:51 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-30 13:01:19 (GMT)
commitc6dc437648097c21965ca87016365a7d6616ad32 (patch)
treefe0ea4c82fc07c9c272605d4b3c024041d3c57cd /vpn/plugins/vpn.c
parentd27c42180b7d0d6fe0e7516019d61d6022421799 (diff)
downloadconnman-c6dc437648097c21965ca87016365a7d6616ad32.zip
connman-c6dc437648097c21965ca87016365a7d6616ad32.tar.gz
connman-c6dc437648097c21965ca87016365a7d6616ad32.tar.bz2
vpn: Driver disconnect needs provider information
The provider pointer needs to be passed to VPN driver when disconnecting. Otherwise we cannot find the correct provider that is being disconnected.
Diffstat (limited to 'vpn/plugins/vpn.c')
-rw-r--r--vpn/plugins/vpn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpn/plugins/vpn.c b/vpn/plugins/vpn.c
index a8603d9..05068f5 100644
--- a/vpn/plugins/vpn.c
+++ b/vpn/plugins/vpn.c
@@ -458,7 +458,7 @@ static int vpn_disconnect(struct vpn_provider *provider)
vpn_driver_data = g_hash_table_lookup(driver_hash, name);
if (vpn_driver_data->vpn_driver->disconnect)
- vpn_driver_data->vpn_driver->disconnect();
+ vpn_driver_data->vpn_driver->disconnect(provider);
if (data->watch != 0) {
vpn_provider_unref(provider);