diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-30 11:30:54 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-30 15:01:19 +0200 |
commit | 17c88e56316622189d1c6ba2f2f3c5ff97d84f25 (patch) | |
tree | 5e187c66b14d96f45010dd28c09c7467a745829a /vpn | |
parent | 138462d1c0de9ae31f71f05b5f6274542f46b5af (diff) | |
download | connman-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.c | 6 |
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) |