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:
082c0eb
)
vpn: Clear the data pointer from provider when destroying
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Thu, 7 Mar 2013 16:13:38 +0000
(18:13 +0200)
committer
Patrik Flykt
<patrik.flykt@linux.intel.com>
Fri, 8 Mar 2013 11:49:57 +0000
(13:49 +0200)
If the data pointer is left around, then vpn plugin might
accidentally use it if dbus messages are received after
we have cleared the vpn connection.
plugins/vpn.c
patch
|
blob
|
history
diff --git
a/plugins/vpn.c
b/plugins/vpn.c
index cbba39655cf278b95e2fe49476f24291006a5cd0..f60a658b095fdf263a587cfe79cac93d94424ad6 100644
(file)
--- a/
plugins/vpn.c
+++ b/
plugins/vpn.c
@@
-1438,6
+1438,8
@@
static void destroy_provider(struct connection_data *data)
if (data->call != NULL)
dbus_pending_call_cancel(data->call);
+ connman_provider_set_data(data->provider, NULL);
+
connman_provider_put(data->provider);
data->provider = NULL;