From 48c30a896bf1b18eaeda0b3128342b6db44c2296 Mon Sep 17 00:00:00 2001 From: fenner Date: Fri, 12 Jul 1996 17:22:32 +0000 Subject: Fix braino in rev 1.30 fix; m_copy() the mbuf that has the header pulled up already. This bug can cause the first packet from a source to a group to be corrupted when it is delivered to a process listening on the mrouter. --- sys/netinet/ip_mroute.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index e53b2a5..ebc844b 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -9,7 +9,7 @@ * Modified by Bill Fenner, PARC, April 1995 * * MROUTING Revision: 3.5 - * $Id: ip_mroute.c,v 1.32 1996/04/18 15:41:11 wollman Exp $ + * $Id: ip_mroute.c,v 1.33 1996/07/12 04:11:48 bde Exp $ */ #include "opt_mrouting.h" @@ -1239,7 +1239,7 @@ X_ip_mforward(ip, ifp, m, imo) return ENOBUFS; } /* Make a copy of the header to send to the user level process */ - mm = m_copy(m, 0, hlen); + mm = m_copy(mb0, 0, hlen); if (mm == NULL) { m_free(mb_ntry); m_freem(mb0); -- cgit v1.1