From 547dcacbfbf317b44f2ddd552339207df39d2d1c Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Fri, 12 Oct 2018 11:48:34 +0200 Subject: [PATCH] ndisc: ensure we skip unspecified IPv6 address in ndisc_set_router_config() Later, nm_ndisc_add_address() asserts that the address is not an unspecified address. Skip it, just to be sure. (cherry picked from commit 700b04d0deded1f8b8267e13202d3c29f8748e14) (cherry picked from commit e0e698e463ef244223d4af500ba7a688ba976c86) --- src/devices/nm-device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index 33dd5e50c7..98aef52407 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -3306,7 +3306,8 @@ ndisc_set_router_config (NMNDisc *ndisc, NMDevice *self) guint32 lifetime, preferred; gint32 base; - if (IN6_IS_ADDR_LINKLOCAL (&addr->address)) + if ( IN6_IS_ADDR_UNSPECIFIED (&addr->address) + || IN6_IS_ADDR_LINKLOCAL (&addr->address)) continue; if ( addr->n_ifa_flags & IFA_F_TENTATIVE