From: Susant Sahani Date: Mon, 25 Sep 2017 15:25:12 +0000 (+0530) Subject: networkd: ndisc The preferred lifetime is never greater than the valid lifetime. X-Git-Tag: v236~167^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=92bdc3ffce6845201b6afa43c64050f31b3b2873;p=thirdparty%2Fsystemd.git networkd: ndisc The preferred lifetime is never greater than the valid lifetime. Silently ignore if the preferred lifetime is never greater than the valid lifetime. --- diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index d52b511bb55..5475972ef75 100644 --- a/src/network/networkd-ndisc.c +++ b/src/network/networkd-ndisc.c @@ -186,6 +186,10 @@ static void ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router * return; } + /* The preferred lifetime is never greater than the valid lifetime */ + if (lifetime_preferred > lifetime_valid) + return; + r = address_new(&address); if (r < 0) { log_link_error_errno(link, r, "Could not allocate address: %m");