summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-30 09:30:54 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-30 13:01:19 (GMT)
commit17c88e56316622189d1c6ba2f2f3c5ff97d84f25 (patch)
tree5e187c66b14d96f45010dd28c09c7467a745829a /vpn
parent138462d1c0de9ae31f71f05b5f6274542f46b5af (diff)
downloadconnman-17c88e56316622189d1c6ba2f2f3c5ff97d84f25.zip
connman-17c88e56316622189d1c6ba2f2f3c5ff97d84f25.tar.gz
connman-17c88e56316622189d1c6ba2f2f3c5ff97d84f25.tar.bz2
pptp: Clear password when disconnecting
Diffstat (limited to 'vpn')
-rw-r--r--vpn/plugins/pptp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vpn/plugins/pptp.c b/vpn/plugins/pptp.c
index 104ae78..7b2844e 100644
--- a/vpn/plugins/pptp.c
+++ b/vpn/plugins/pptp.c
@@ -558,12 +558,18 @@ static int pptp_error_code(int exit_code)
}
}
+static void pptp_disconnect(struct vpn_provider *provider)
+{
+ vpn_provider_set_string(provider, "PPTP.Password", NULL);
+}
+
static struct vpn_driver vpn_driver = {
.flags = VPN_FLAG_NO_TUN,
.notify = pptp_notify,
.connect = pptp_connect,
.error_code = pptp_error_code,
.save = pptp_save,
+ .disconnect = pptp_disconnect,
};
static int pptp_init(void)