From fd3fec48014ad97346e4c5f1f527574d04ab0496 Mon Sep 17 00:00:00 2001 From: luigi Date: Fri, 19 Feb 1999 18:32:55 +0000 Subject: [PATCH] avoid panic with pkts larger than MTU and DF set coming out of a pipe. --- sys/netinet/ip_output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index a180e401b8de..0a05ee97ff30 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_output.c 8.3 (Berkeley) 1/21/94 - * $Id: ip_output.c,v 1.84 1998/12/14 18:09:13 luigi Exp $ + * $Id: ip_output.c,v 1.85 1998/12/21 21:36:40 luigi Exp $ */ #define _IP_VHL @@ -158,7 +158,7 @@ ip_output(m0, opt, ro, flags, imo) * they are used to hold ifp and hlen and NULL, respectively. */ rule = (struct ip_fw_chain *)(m->m_data) ; - m = m->m_next ; + m0 = m = m->m_next ; free(tmp_m, M_IPFW); ip = mtod(m, struct ip *); dst = (struct sockaddr_in *)&ro->ro_dst;