From: Roy Marples Date: Mon, 28 Dec 2020 01:59:57 +0000 (+0000) Subject: script: ignore inactive interfaces for ordering X-Git-Tag: v9.4.0~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dec1f731d60738a86d7e35004a95ce10a40ea0a4;p=thirdparty%2Fdhcpcd.git script: ignore inactive interfaces for ordering --- 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;