diff options
author | Jukka Rissanen <jukka.rissanen@linux.intel.com> | 2012-11-30 11:30:53 +0200 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-11-30 15:01:19 +0200 |
commit | 138462d1c0de9ae31f71f05b5f6274542f46b5af (patch) | |
tree | f03928ba255be7677d7b99a21f4b1ff2dad02a3e /vpn | |
parent | c6dc437648097c21965ca87016365a7d6616ad32 (diff) | |
download | connman-138462d1c0de9ae31f71f05b5f6274542f46b5af.tar.gz connman-138462d1c0de9ae31f71f05b5f6274542f46b5af.tar.bz2 connman-138462d1c0de9ae31f71f05b5f6274542f46b5af.zip |
l2tp: Clear password when disconnecting
Diffstat (limited to 'vpn')
-rw-r--r-- | vpn/plugins/l2tp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vpn/plugins/l2tp.c b/vpn/plugins/l2tp.c index d7439cd5..379447bb 100644 --- a/vpn/plugins/l2tp.c +++ b/vpn/plugins/l2tp.c @@ -743,12 +743,18 @@ static int l2tp_error_code(int exit_code) } } +static void l2tp_disconnect(struct vpn_provider *provider) +{ + vpn_provider_set_string(provider, "L2TP.Password", NULL); +} + static struct vpn_driver vpn_driver = { .flags = VPN_FLAG_NO_TUN, .notify = l2tp_notify, .connect = l2tp_connect, .error_code = l2tp_error_code, .save = l2tp_save, + .disconnect = l2tp_disconnect, }; static int l2tp_init(void) |