From afb3fdba7c55c78712ce12aaf61da5f63e8da77e Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Tue, 27 Oct 1998 09:11:41 +0000 Subject: [PATCH] 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(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 18f9fe209ed..a22628c34c1 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) {