summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-12-28 01:59:57 +0000
committerRoy Marples <roy@marples.name>2020-12-28 01:59:57 +0000
commit9355b4508c8e17a35d97e6cf5ea9872133b6d86a (patch)
tree95b3c61bce68ab8c8aff108b5523e71c6d75bc65
parent9d5314540fd617c849feff7bd47788d510cccd5b (diff)
downloaddhcpcd-9355b4508c8e17a35d97e6cf5ea9872133b6d86a.tar.xz
script: ignore inactive interfaces for ordering
-rw-r--r--src/script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script.c b/src/script.c
index bf1e5152..5f404eac 100644
--- a/src/script.c
+++ b/src/script.c
@@ -392,6 +392,8 @@ make_env(struct dhcpcd_ctx *ctx, const struct interface *ifp,
rb_tree_init(&ifaces, &rt_compare_proto_ops);
TAILQ_FOREACH(ifp2, ifp->ctx->ifaces, next) {
+ if (!ifp2->active)
+ continue;
rt = rt_new(UNCONST(ifp2));
if (rt == NULL)
goto eexit;