From a5c42eeb450a50ad33f09bc3a4148d27f007e8c8 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 9 Dec 2015 15:53:33 +0100 Subject: [PATCH] device: don't try to match the spec against a device with no hwaddr It could be an unrealized device. --- src/devices/nm-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 36971049dd..dd8f698d52 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -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); }