diff options
author | dg <dg@FreeBSD.org> | 1998-11-11 21:17:59 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1998-11-11 21:17:59 +0000 |
commit | a0c398294eb2f38265e1b7417cb52a099bd862f8 (patch) | |
tree | 507f04645cf3d412f7d37244039d6b9e6c37c6ff /sys | |
parent | db28f40beee243ea6c2a3d88927156f63fb38080 (diff) | |
download | FreeBSD-src-a0c398294eb2f38265e1b7417cb52a099bd862f8.zip FreeBSD-src-a0c398294eb2f38265e1b7417cb52a099bd862f8.tar.gz |
Be sure to pullup entire IP header when dealing with fragment packets.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 8c6d2f5..f32f6f5 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)ip_input.c 8.2 (Berkeley) 1/4/94 - * $Id: ip_input.c,v 1.103 1998/10/27 09:11:41 dfr Exp $ + * $Id: ip_input.c,v 1.104 1998/10/27 09:19:03 dfr Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -513,7 +513,7 @@ ours: */ if (ip->ip_off & (IP_MF | IP_OFFMASK | IP_RF)) { if (m->m_flags & M_EXT) { /* XXX */ - if ((m = m_pullup(m, sizeof (struct ip))) == 0) { + if ((m = m_pullup(m, hlen)) == 0) { ipstat.ips_toosmall++; #ifdef IPDIVERT frag_divert_port = 0; |