libnm-core/vpn-connection: get the service for bus path from plugin

...not from the connection. Otherwise the o.fdo.NM.openswan connection
would try to use a name they're not allowed to use.
This commit is contained in:
Lubomir Rintel 2016-04-16 14:08:26 +02:00
parent 201d91115c
commit 178c972fac

View file

@ -2019,7 +2019,10 @@ nm_vpn_connection_activate (NMVpnConnection *self,
s_vpn = nm_connection_get_setting_vpn (_get_applied_connection (self));
g_return_if_fail (s_vpn);
service = nm_setting_vpn_get_service_type (s_vpn);
service = nm_vpn_plugin_info_lookup_property (plugin_info,
NM_VPN_PLUGIN_INFO_KF_GROUP_CONNECTION,
"service");
g_return_if_fail (service);
if (nm_vpn_plugin_info_supports_multiple (plugin_info)) {
const char *path;