summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-04-13 14:08:51 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-04-13 14:08:51 +0000
commitf4e35c66b77476a04ed5a7f2545fe613e79c814a (patch)
tree5306092e6211773d5b76c26af9e9ef41c373db00
parent257031101e68f49c8bc862d10f052462725aed3a (diff)
do not return icmp6 error against icmp6 error.
(this is due to a bug in header chain chasing)
-rw-r--r--sys/netinet6/icmp6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 6a5be740bb1..00df587b827 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.10 2000/03/22 03:50:35 itojun Exp $ */
+/* $OpenBSD: icmp6.c,v 1.11 2000/04/13 14:08:50 itojun Exp $ */
/* $KAME: icmp6.c,v 1.75 2000/03/11 09:32:17 itojun Exp $ */
/*
@@ -187,7 +187,7 @@ icmp6_error(m, type, code, param)
* don't do it.
*/
nxt = -1;
- off = ip6_lasthdr(m, sizeof(struct ip6_hdr), oip6->ip6_nxt, &nxt);
+ off = ip6_lasthdr(m, 0, IPPROTO_IPV6, &nxt);
if (off >= 0 && nxt == IPPROTO_ICMPV6) {
struct icmp6_hdr *icp;