summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-10-27 20:32:17 +0100
committerThomas Haller <thaller@redhat.com>2014-10-27 20:32:39 +0100
commitd3ebe386ccf3297bfeeece013231068834d2a307 (patch)
tree617c0a1a87d47c788f9d16e9bced47e2686ed447
parentcc9251d63196435e48dd059b08b37a78ed59f691 (diff)
downloadNetworkManager-d3ebe386ccf3297bfeeece013231068834d2a307.tar.gz
wifi: avoid assertion in nm_ap_check_compatible() when comparing AP with missing BSSID
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r--src/devices/wifi/nm-wifi-ap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-wifi-ap.c b/src/devices/wifi/nm-wifi-ap.c
index 2efe5ef845..c775940f09 100644
--- a/src/devices/wifi/nm-wifi-ap.c
+++ b/src/devices/wifi/nm-wifi-ap.c
@@ -1129,7 +1129,7 @@ nm_ap_check_compatible (NMAccessPoint *self,
return FALSE;
bssid = nm_setting_wireless_get_bssid (s_wireless);
- if (bssid && !nm_utils_hwaddr_matches (bssid, -1, priv->address, -1))
+ if (bssid && (!priv->address || !nm_utils_hwaddr_matches (bssid, -1, priv->address, -1)))
return FALSE;
mode = nm_setting_wireless_get_mode (s_wireless);