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.
This commit is contained in:
Thomas Haller 2018-10-12 11:48:34 +02:00
parent 43c3c259c8
commit 700b04d0de

View file

@ -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