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:
Lubomir Rintel 2015-12-09 15:53:33 +01:00
parent 7e5f27a21c
commit a5c42eeb45

View file

@ -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);
}