From: Roy Marples Date: Wed, 4 Nov 2020 14:25:00 +0000 (+0000) Subject: When adding a route, the interface will always have options. X-Git-Tag: v9.3.3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c49db0e1ced7c95d49fb6c844b918cf6ca899d4f;p=thirdparty%2Fdhcpcd.git When adding a route, the interface will always have options. --- diff --git a/src/route.c b/src/route.c index f5f4f83c..8e759775 100644 --- a/src/route.c +++ b/src/route.c @@ -713,8 +713,7 @@ rt_build(struct dhcpcd_ctx *ctx, int af) #endif RB_TREE_FOREACH_SAFE(rt, &routes, rtn) { - if (rt->rt_ifp && rt->rt_ifp->options && - !(rt->rt_ifp->options->options & DHCPCD_CONFIGURE)) + if (rt->rt_ifp->options->options & DHCPCD_CONFIGURE) continue; #ifdef BSD if (rt_is_default(rt) &&