diff options
author | Thomas Haller <thaller@redhat.com> | 2018-10-12 11:48:34 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2018-10-13 17:11:52 +0200 |
commit | 700b04d0deded1f8b8267e13202d3c29f8748e14 (patch) | |
tree | aeefec063b1589d34aa5457bfe3d3291465f21a4 | |
parent | 43c3c259c8e2fd4aa5416b79efd47a72cca790ec (diff) | |
download | NetworkManager-700b04d0deded1f8b8267e13202d3c29f8748e14.tar.gz |
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.
-rw-r--r-- | src/devices/nm-device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/devices/nm-device.c b/src/devices/nm-device.c index d1f059abd8..8bc98d6155 100644 --- a/src/devices/nm-device.c +++ b/src/devices/nm-device.c @@ -3545,7 +3545,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 |