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
commitdec1f731d60738a86d7e35004a95ce10a40ea0a4 (patch)
tree95b3c61bce68ab8c8aff108b5523e71c6d75bc65
parent2bd74fa2acd005e68b6fcdd6d3132ab034440515 (diff)
downloaddhcpcd-dec1f731d60738a86d7e35004a95ce10a40ea0a4.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;