diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c index e07ca80e07b5..59bb4a5afdf9 100644 --- a/sys/netinet6/raw_ip6.c +++ b/sys/netinet6/raw_ip6.c @@ -167,7 +167,7 @@ rip6_input(mp, offp, proto) goto docontinue; if (in6p->in6p_cksum != -1) { rip6stat.rip6s_isum++; - if (in6_cksum(m, ip6->ip6_nxt, *offp, + if (in6_cksum(m, proto, *offp, m->m_pkthdr.len - *offp)) { rip6stat.rip6s_badsum++; goto docontinue;