diff options
author | suz <suz@FreeBSD.org> | 2003-12-22 03:12:13 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2003-12-22 03:12:13 +0000 |
commit | ed93d04274fb5541ea4fb8e9ea53a3b709c7c0bf (patch) | |
tree | d01efc25f570b73025c9abc745de6ca0abc776a0 /sys | |
parent | dbc67551d35dfdec68a4408dde210754e6b1a2f3 (diff) | |
download | FreeBSD-src-ed93d04274fb5541ea4fb8e9ea53a3b709c7c0bf.zip FreeBSD-src-ed93d04274fb5541ea4fb8e9ea53a3b709c7c0bf.tar.gz |
fixed a bug that IPv6 routing header does not work properly if specified from userland application
reviewed by: ume
Diffstat (limited to 'sys')
-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, |