summaryrefslogtreecommitdiffstats
path: root/src/ipv6.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2020-05-24 12:30:13 +0100
committerRoy Marples <roy@marples.name>2020-05-24 12:30:13 +0100
commit5aca43094dfbb69053877f3eb45a410157443b0f (patch)
tree2938d9e6a12fe9172736ddaa2581b40853ced895 /src/ipv6.c
parent00bb5ee068f7a72a516360913c95c639ef7e7518 (diff)
downloaddhcpcd-5aca43094dfbb69053877f3eb45a410157443b0f.tar.xz
Fix prior for BSD
Diffstat (limited to 'src/ipv6.c')
-rw-r--r--src/ipv6.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ipv6.c b/src/ipv6.c
index 71b51bc7..ef4b7164 100644
--- a/src/ipv6.c
+++ b/src/ipv6.c
@@ -1093,11 +1093,10 @@ ipv6_anyglobal(struct interface *sifp)
#if defined(PRIVSEP) && defined(HAVE_PLEDGE)
if (IN_PRIVSEP(sifp->ctx))
- forwarding = ps_root_ip6forwarding(sifp->ctx) == 1;
+ forwarding = ps_root_ip6forwarding(sifp->ctx, NULL) == 1;
else
-#else
- forwarding = ip6_forwarding(NULL) == 1;
#endif
+ forwarding = ip6_forwarding(NULL) == 1;
#endif