handle DBUS permission problems gracefully

This commit is contained in:
Martin Willi
2008-08-20 11:44:47 +00:00
parent 142eaea43c
commit 1b9f6c2410
2 changed files with 23 additions and 13 deletions
+4 -3
View File
@@ -376,9 +376,10 @@ NMStrongswanPlugin *nm_strongswan_plugin_new(nm_creds_t *creds)
NM_TYPE_STRONGSWAN_PLUGIN,
NM_VPN_PLUGIN_DBUS_SERVICE_NAME, NM_DBUS_SERVICE_STRONGSWAN,
NULL);
NM_STRONGSWAN_PLUGIN_GET_PRIVATE(plugin)->creds = creds;
if (plugin)
{
NM_STRONGSWAN_PLUGIN_GET_PRIVATE(plugin)->creds = creds;
}
return plugin;
}