]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
When adding a route, the interface will always have options.
authorRoy Marples <roy@marples.name>
Wed, 4 Nov 2020 14:25:00 +0000 (14:25 +0000)
committerRoy Marples <roy@marples.name>
Wed, 4 Nov 2020 14:25:00 +0000 (14:25 +0000)
src/route.c

index f5f4f83cf278879724c630f62710023eb9ac73fb..8e7597751cc84cc6fa50632ed0d0350b69d10764 100644 (file)
@@ -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) &&