summaryrefslogtreecommitdiff
path: root/sys/netinet6/ip6_forward.c
diff options
context:
space:
mode:
authorjasoni <jasoni@cvs.openbsd.org>2001-11-26 16:50:27 +0000
committerjasoni <jasoni@cvs.openbsd.org>2001-11-26 16:50:27 +0000
commit896dd9fb19132525f3f8e26d31780fdf568b1f6a (patch)
tree561564460397703baccc270988e5bf7122bb808e /sys/netinet6/ip6_forward.c
parent8d170a2693ea47a2f5ea03c44511506673ec2596 (diff)
add fastroute options similar to what is found in ipf
ok dhartmei@, frantzen@
Diffstat (limited to 'sys/netinet6/ip6_forward.c')
-rw-r--r--sys/netinet6/ip6_forward.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet6/ip6_forward.c b/sys/netinet6/ip6_forward.c
index dab86d9c8ae..8f98801e00c 100644
--- a/sys/netinet6/ip6_forward.c
+++ b/sys/netinet6/ip6_forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_forward.c,v 1.17 2001/09/29 08:02:07 jasoni Exp $ */
+/* $OpenBSD: ip6_forward.c,v 1.18 2001/11/26 16:50:26 jasoni Exp $ */
/* $KAME: ip6_forward.c,v 1.75 2001/06/29 12:42:13 jinmei Exp $ */
/*
@@ -487,10 +487,13 @@ ip6_forward(m, srcrt)
ip6->ip6_dst.s6_addr16[1] = 0;
#if NPF > 0
- if (pf_test6(PF_OUT, rt->rt_ifp, &m) != PF_PASS) {
+ if (pf_test6(PF_OUT, rt->rt_ifp, &m) != PF_PASS) {
m_freem(m);
goto senderr;
}
+ if (m == NULL)
+ goto senderr;
+
ip6 = mtod(m, struct ip6_hdr *);
#endif