From e3ae3efc094eb9e51cf1fe0f044eb2789b5b151a Mon Sep 17 00:00:00 2001 From: Frej Soya Date: Mon, 5 Oct 2009 11:22:20 +0200 Subject: [PATCH] wired: fix build_supplicant_config for wired - bgo:594038 lp:422597 --- src/nm-device-ethernet.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nm-device-ethernet.c b/src/nm-device-ethernet.c index e0ff6b762e..6a75cba1fd 100644 --- a/src/nm-device-ethernet.c +++ b/src/nm-device-ethernet.c @@ -921,15 +921,14 @@ supplicant_mgr_state_cb (NMSupplicantInterface * iface, static NMSupplicantConfig * build_supplicant_config (NMDeviceEthernet *self) { - DBusGProxy *proxy; const char *con_path; NMSupplicantConfig *config = NULL; NMSetting8021x *security; NMConnection *connection; connection = nm_act_request_get_connection (nm_device_get_act_request (NM_DEVICE (self))); - proxy = g_object_get_data (G_OBJECT (connection), "dbus-proxy"); - con_path = dbus_g_proxy_get_path (proxy); + g_return_val_if_fail (connection, NULL); + con_path = nm_connection_get_path (connection); config = nm_supplicant_config_new (); if (!config)