From: Roy Marples Date: Mon, 3 Aug 2020 15:55:51 +0000 (+0100) Subject: inet6: Linux will convert NULL to all, so don't specify all X-Git-Tag: v9.2.0~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c87f17c64c513a9495deb6b0749d90be529af79b;p=thirdparty%2Fdhcpcd.git inet6: Linux will convert NULL to all, so don't specify all --- diff --git a/src/ipv6.c b/src/ipv6.c index 5a8b08be..1cd02bec 100644 --- a/src/ipv6.c +++ b/src/ipv6.c @@ -1100,10 +1100,10 @@ ipv6_anyglobal(struct interface *sifp) * Per interface only affects IsRouter of NA messages. */ #if defined(PRIVSEP) && (defined(HAVE_PLEDGE) || defined(__linux__)) if (IN_PRIVSEP(sifp->ctx)) - forwarding = ps_root_ip6forwarding(sifp->ctx, "all") != 0; + forwarding = ps_root_ip6forwarding(sifp->ctx, NULL) != 0; else #endif - forwarding = ip6_forwarding("all") != 0; + forwarding = ip6_forwarding(NULL) != 0; TAILQ_FOREACH(ifp, sifp->ctx->ifaces, next) { if (ifp != sifp && !forwarding)