From c49db0e1ced7c95d49fb6c844b918cf6ca899d4f Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 4 Nov 2020 14:25:00 +0000 Subject: [PATCH] When adding a route, the interface will always have options. --- src/route.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) && -- 2.47.3