summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-07-12 17:22:32 +0000
committerfenner <fenner@FreeBSD.org>1996-07-12 17:22:32 +0000
commit48c30a896bf1b18eaeda0b3128342b6db44c2296 (patch)
tree8222e56cb4f8bbbae3cd08e3e9b3823bfa74b318 /sys
parenta8a81d83f6ebaed3d86386d082501921d9c7b8d8 (diff)
downloadFreeBSD-src-48c30a896bf1b18eaeda0b3128342b6db44c2296.zip
FreeBSD-src-48c30a896bf1b18eaeda0b3128342b6db44c2296.tar.gz
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.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_mroute.c4
1 files changed, 2 insertions, 2 deletions
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);
OpenPOWER on IntegriCloud