From a5bf24db749ad1a167d751991544536589ae346f Mon Sep 17 00:00:00 2001 From: dfr Date: Tue, 27 Oct 1998 09:11:41 +0000 Subject: 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 --- sys/netinet/ip_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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) { -- cgit v1.1