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:
Dan Williams
2007-10-02 02:55:58 +00:00
parent b7e5539b8c
commit 694278a5e9

View File

@@ -130,10 +130,12 @@ impl_vpn_manager_connect (NMVPNManager *manager,
NMDevice *device; NMDevice *device;
NMConnection *connection = NULL; NMConnection *connection = NULL;
NMVPNConnection *vpn_connection = NULL; NMVPNConnection *vpn_connection = NULL;
NMVPNManagerPrivate *priv;
*vpn_connection_path = NULL; *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) { if (!device) {
*err = new_vpn_error ("%s.%d: No active device was found.", *err = new_vpn_error ("%s.%d: No active device was found.",
__FILE__, __LINE__); __FILE__, __LINE__);