From: Steven Barth Date: Tue, 14 Jul 2015 19:44:08 +0000 (+0200) Subject: router: fix logic inversion X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fodhcpd.git;a=commitdiff_plain;h=6ce8886defe05cdc5f6cbe1ec2f060743d8d5e15 router: fix logic inversion --- 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;