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 | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/plugins/vpn.c b/plugins/vpn.c index cbba396..f60a658 100644 --- 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; -- 1.7.11.4 _______________________________________________ connman mailing list connman@connman.net http://lists.connman.net/listinfo/connman