From 7203769fd08a6d7a0aa73595dbf5d0bbabeb050c Mon Sep 17 00:00:00 2001 From: Beniamino Galvani Date: Fri, 2 Sep 2016 08:39:17 +0200 Subject: [PATCH] device: don't try to start LLDP listener if no link is available L3-only devices don't have an ifindex during stage2, don't try to start LLDP on them. Fixes: 07a9364d9c151bc3086a863759d31d0857ae011e --- 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 37ab0f26c..fbd5294ea 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -4044,7 +4044,7 @@ activate_stage2_device_config (NMDevice *self) nm_device_queue_recheck_assume (info->slave); } - if (lldp_rx_enabled (self)) { + if (lldp_rx_enabled (self) && priv->ifindex > 0) { gs_free_error GError *error = NULL; gconstpointer addr; size_t addr_length;