mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 17:40:08 +01:00
device: don't try to match the spec against a device with no hwaddr
It could be an unrealized device.
This commit is contained in:
parent
7e5f27a21c
commit
a5c42eeb45
1 changed files with 1 additions and 1 deletions
|
|
@ -10018,7 +10018,7 @@ spec_match_list (NMDevice *self, const GSList *specs)
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (priv->hw_addr_len) {
|
||||
if (priv->hw_addr_len && priv->hw_addr) {
|
||||
m = nm_match_spec_hwaddr (specs, priv->hw_addr);
|
||||
matched = MAX (matched, m);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue