diff options
-rw-r--r-- | sys/netinet6/ip6_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c index 30eda32..99addae 100644 --- a/sys/netinet6/ip6_output.c +++ b/sys/netinet6/ip6_output.c @@ -500,7 +500,7 @@ skip_ipsec2:; switch (rh->ip6r_type) { case IPV6_RTHDR_TYPE_0: rh0 = (struct ip6_rthdr0 *)rh; - addrs = (struct in6_addr *)(rh + 1); + addrs = (struct in6_addr *)(rh0 + 1); ip6->ip6_dst = *addrs; bcopy((caddr_t)(addrs + 1), (caddr_t)addrs, |