summaryrefslogtreecommitdiff
path: root/vpn
diff options
context:
space:
mode:
authorJukka Rissanen <jukka.rissanen@linux.intel.com>2012-11-30 11:30:54 +0200
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-30 15:01:19 +0200
commit17c88e56316622189d1c6ba2f2f3c5ff97d84f25 (patch)
tree5e187c66b14d96f45010dd28c09c7467a745829a /vpn
parent138462d1c0de9ae31f71f05b5f6274542f46b5af (diff)
downloadconnman-17c88e56316622189d1c6ba2f2f3c5ff97d84f25.tar.gz
connman-17c88e56316622189d1c6ba2f2f3c5ff97d84f25.tar.bz2
connman-17c88e56316622189d1c6ba2f2f3c5ff97d84f25.zip
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 104ae785..7b2844e7 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)