From 37044f9dc4154656f80f64756350415c67477404 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Thu, 7 Aug 2003 09:11:25 +0000 Subject: m_cat might free mbuf passed as 2nd arg. compute pkthdr.len before m_cat. from kame --- sys/netinet6/icmp6.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet6') diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c index eaa63cc3d3f..c15081e71ef 100644 --- a/sys/netinet6/icmp6.c +++ b/sys/netinet6/icmp6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: icmp6.c,v 1.73 2003/06/24 07:55:12 itojun Exp $ */ +/* $OpenBSD: icmp6.c,v 1.74 2003/08/07 09:11:24 itojun Exp $ */ /* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */ /* @@ -2603,8 +2603,8 @@ icmp6_redirect_output(m0, rt) m->m_pkthdr.len = m->m_len = p - (u_char *)ip6; /* connect m0 to m */ - m_cat(m, m0); m->m_pkthdr.len += m0->m_pkthdr.len; + m_cat(m, m0); m0 = NULL; } noredhdropt: -- cgit v1.2.3