mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 11:00:09 +01:00
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:
parent
80817ec8c4
commit
d030019245
2 changed files with 12 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue