From 6ce8886defe05cdc5f6cbe1ec2f060743d8d5e15 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Tue, 14 Jul 2015 21:44:08 +0200 Subject: [PATCH] router: fix logic inversion --- src/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router.c b/src/router.c index e3a9aa9..fada62b 100644 --- a/src/router.c +++ b/src/router.c @@ -321,7 +321,7 @@ static uint64_t send_router_advert(struct interface *iface, const struct in6_add } } - if (maxvalid && !iface->default_router && adv.h.nd_ra_router_lifetime) { + if (!maxvalid && !iface->default_router && adv.h.nd_ra_router_lifetime) { syslog(LOG_WARNING, "A default route is present but there is no public prefix " "on %s thus we don't announce a default route!", iface->ifname); adv.h.nd_ra_router_lifetime = 0; -- 2.25.1