diff options
author | dfr <dfr@FreeBSD.org> | 1998-10-27 09:11:41 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-10-27 09:11:41 +0000 |
commit | a5bf24db749ad1a167d751991544536589ae346f (patch) | |
tree | 64ffd4686475881acb54ba2441314535ae43c408 /sys | |
parent | 832b98b6ffeefa742b85a92148797a3cf4eab153 (diff) | |
download | FreeBSD-src-a5bf24db749ad1a167d751991544536589ae346f.zip FreeBSD-src-a5bf24db749ad1a167d751991544536589ae346f.tar.gz |
Fix a bug in the new fragment reassembly code which was tickled by recieving
a fragment which wholly overlapped one or more existing fragments.
Submitted by: Don Lewis <Don.Lewis@tsc.tdk.com>
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 18f9fe2..a22628c 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.101 1998/09/10 08:56:40 dfr Exp $ + * $Id: ip_input.c,v 1.102 1998/10/16 03:55:01 peter Exp $ * $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $ */ @@ -750,7 +750,7 @@ ip_reass(m, fp, where) * if they are completely covered, dequeue them. */ for (; q != NULL && ip->ip_off + ip->ip_len > GETIP(q)->ip_off; - p = q, q = nq) { + q = nq) { i = (ip->ip_off + ip->ip_len) - GETIP(q)->ip_off; if (i < GETIP(q)->ip_len) { |