2007-10-06 Dan Williams <dcbw@redhat.com>

* libnm-glib/nm-device-802-11-wireless.c
		- (nm_device_802_11_wireless_get_active_access_point): don't segfault
			on error when getting the active access point over D-Bus from NM



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2939 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
This commit is contained in:
Dan Williams 2007-10-06 04:24:30 +00:00
parent 80817ec8c4
commit d030019245
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2007-10-06 Dan Williams <dcbw@redhat.com>
* libnm-glib/nm-device-802-11-wireless.c
- (nm_device_802_11_wireless_get_active_access_point): don't segfault
on error when getting the active access point over D-Bus from NM
2007-10-05 Dan Williams <dcbw@redhat.com>
* libnm-util/nm-setting.c

View file

@ -495,10 +495,12 @@ nm_device_802_11_wireless_get_active_access_point (NMDevice80211Wireless *device
path = nm_object_get_object_path_property (NM_OBJECT (device),
NM_DBUS_INTERFACE_DEVICE_WIRELESS,
DBUS_PROP_ACTIVE_ACCESS_POINT);
priv->current_ap = get_access_point (device, path, TRUE);
if (priv->current_ap)
g_object_ref (priv->current_ap);
g_free (path);
if (path) {
priv->current_ap = get_access_point (device, path, TRUE);
if (priv->current_ap)
g_object_ref (priv->current_ap);
g_free (path);
}
}
return priv->current_ap;