mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 18:08:05 +02:00
libnm-core: fix mac comparison in _remove_mac_blacklist_item_by_value
The comparison checking for MAC address equality had previously been flipped around. Fixes:b084ad7f2b('libnm-core: canonicalize hardware addresses in settings') (cherry picked from commit641e717797) (cherry picked from commit08b1a08ef8)
This commit is contained in:
parent
318e1668bf
commit
e3f5229930
1 changed files with 1 additions and 1 deletions
|
|
@ -600,7 +600,7 @@ nm_setting_wireless_remove_mac_blacklist_item_by_value(NMSettingWireless *settin
|
|||
priv = NM_SETTING_WIRELESS_GET_PRIVATE(setting);
|
||||
for (i = 0; i < priv->mac_address_blacklist->len; i++) {
|
||||
candidate = nm_g_array_index(priv->mac_address_blacklist, char *, i);
|
||||
if (!nm_utils_hwaddr_matches(mac, -1, candidate, -1)) {
|
||||
if (nm_utils_hwaddr_matches(mac, -1, candidate, -1)) {
|
||||
g_array_remove_index(priv->mac_address_blacklist, i);
|
||||
_notify(setting, PROP_MAC_ADDRESS_BLACKLIST);
|
||||
return TRUE;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue