mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-09 07:08:02 +02:00
wifi: avoid assertion in nm_ap_check_compatible() when comparing AP with missing BSSID
Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
cc9251d631
commit
d3ebe386cc
1 changed files with 1 additions and 1 deletions
|
|
@ -1129,7 +1129,7 @@ nm_ap_check_compatible (NMAccessPoint *self,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
bssid = nm_setting_wireless_get_bssid (s_wireless);
|
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;
|
return FALSE;
|
||||||
|
|
||||||
mode = nm_setting_wireless_get_mode (s_wireless);
|
mode = nm_setting_wireless_get_mode (s_wireless);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue