summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2002-03-29 15:42:44 +0000
committerume <ume@FreeBSD.org>2002-03-29 15:42:44 +0000
commit1787e9ff8d12fd561c9345471ac9c345fa9251dd (patch)
tree4db101ba1a73358c2a9bdfe639c2f9140543db34 /sys/netinet6
parent9ae6d1242c5a218cbb27f1a3ed8a9014412bbf80 (diff)
downloadFreeBSD-src-1787e9ff8d12fd561c9345471ac9c345fa9251dd.zip
FreeBSD-src-1787e9ff8d12fd561c9345471ac9c345fa9251dd.tar.gz
Fix cached route problem.
Submitted by: Keiichi SHIMA <keiichi@iij.ad.jp> (KAME) Reviewed by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> (KAME) MFC after: 1 week
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_output.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index aaf6aa1..e4d2c77 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -470,6 +470,7 @@ skip_ipsec2:;
* and is still up. If not, free it and try again.
*/
if (ro->ro_rt && ((ro->ro_rt->rt_flags & RTF_UP) == 0 ||
+ dst->sin6_family != AF_INET6 ||
!IN6_ARE_ADDR_EQUAL(&dst->sin6_addr, &ip6->ip6_dst))) {
RTFREE(ro->ro_rt);
ro->ro_rt = (struct rtentry *)0;
OpenPOWER on IntegriCloud