summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/route6.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c
index cbba9db..3cd95a1 100644
--- a/sys/netinet6/route6.c
+++ b/sys/netinet6/route6.c
@@ -157,7 +157,8 @@ ip6_rthdr0(m, ip6, rh0)
index = addrs - rh0->ip6r0_segleft;
rh0->ip6r0_segleft--;
- nextaddr = ((struct in6_addr *)(rh0 + 1)) + index;
+ /* note that ip6r0_addr does not exist in RFC2292bis */
+ nextaddr = rh0->ip6r0_addr + index;
/*
* reject invalid addresses. be proactive about malicious use of
OpenPOWER on IntegriCloud