From: itojun Date: Thu, 13 Apr 2000 14:08:50 +0000 (+0000) Subject: do not return icmp6 error against icmp6 error. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2be6c224c7708e0f0f00eea5453d3b35ebf4d706;p=openbsd do not return icmp6 error against icmp6 error. (this is due to a bug in header chain chasing) --- 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;