projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
138462d
)
pptp: Clear password when disconnecting
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Fri, 30 Nov 2012 09:30:54 +0000
(11:30 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 30 Nov 2012 13:01:19 +0000
(15:01 +0200)
vpn/plugins/pptp.c
patch
|
blob
|
history
diff --git
a/vpn/plugins/pptp.c
b/vpn/plugins/pptp.c
index
104ae78
..
7b2844e
100644
(file)
--- 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)