summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2015-10-22 10:17:20 +0200
committerJiří Klimeš <jklimes@redhat.com>2015-10-22 10:27:14 +0200
commite9bc18d2a7befb032052555ffba22bc72c9b8c2f (patch)
treee1881741e57b3145cc0997cac65881d18f8f304e
parent5fa369e95cbaa33d19a1cc36068678834b7e9a24 (diff)
downloadNetworkManager-jk/fixes.tar.gz
wifi: do no crash when getting BSSID failsjk/fixes
https://bodhi.fedoraproject.org/updates/NetworkManager-1.0.6-7.fc23#comment-342089
-rw-r--r--src/devices/wifi/nm-device-wifi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c
index e1b005418c..99e35a9651 100644
--- a/src/devices/wifi/nm-device-wifi.c
+++ b/src/devices/wifi/nm-device-wifi.c
@@ -1482,7 +1482,11 @@ try_fill_ssid_for_hidden_ap (NMAccessPoint *ap)
g_return_if_fail (nm_ap_get_ssid (ap) == NULL);
bssid = nm_ap_get_address (ap);
- g_assert (bssid);
+ if (!bssid) {
+ nm_log_dbg (LOGD_WIFI, "failed to get BSSID for hidden AP %s",
+ str_if_set (nm_ap_get_supplicant_path (ap), "(none)"));
+ return;
+ }
/* Look for this AP's BSSID in the seen-bssids list of a connection,
* and if a match is found, copy over the SSID */