From c9f7960c261c0d7691da32a259eea793a07214d5 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Feb 24 2021 15:29:38 +0000 Subject: Apply patch 1008-wifi-avoid-crash-due-to-incomplete-Wi-Fi-API-info-rh1866395.patch patch_name: 1008-wifi-avoid-crash-due-to-incomplete-Wi-Fi-API-info-rh1866395.patch present_in_specfile: true location_in_specfile: 10 --- diff --git a/src/devices/wifi/nm-device-wifi.c b/src/devices/wifi/nm-device-wifi.c index 2d97f9b..2a34288 100644 --- a/src/devices/wifi/nm-device-wifi.c +++ b/src/devices/wifi/nm-device-wifi.c @@ -1937,6 +1937,13 @@ supplicant_iface_bss_changed_cb (NMSupplicantInterface *iface, } else { gs_unref_object NMWifiAP *ap = NULL; + if (!bss_info->bssid_valid) { + /* We failed to initialize the info about the AP. This can + * happen due to an error in the D-Bus communication. In this case + * we ignore the info. */ + return; + } + ap = nm_wifi_ap_new_from_properties (bss_info); /* Let the manager try to fill in the SSID from seen-bssids lists */