avoid panic with pkts larger than MTU and DF set coming out of a pipe.

This commit is contained in:
Luigi Rizzo 1999-02-19 18:32:55 +00:00
parent cd0fb97e25
commit 17458d3570
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=44154

View file

@ -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;