Pass correct manager
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2924 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
@@ -130,10 +130,12 @@ impl_vpn_manager_connect (NMVPNManager *manager,
|
||||
NMDevice *device;
|
||||
NMConnection *connection = NULL;
|
||||
NMVPNConnection *vpn_connection = NULL;
|
||||
NMVPNManagerPrivate *priv;
|
||||
|
||||
*vpn_connection_path = NULL;
|
||||
|
||||
device = nm_manager_get_device_by_path (manager, device_path);
|
||||
priv = NM_VPN_MANAGER_GET_PRIVATE (manager);
|
||||
device = nm_manager_get_device_by_path (priv->nm_manager, device_path);
|
||||
if (!device) {
|
||||
*err = new_vpn_error ("%s.%d: No active device was found.",
|
||||
__FILE__, __LINE__);
|
||||
|
Reference in New Issue
Block a user