mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
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>
This commit is contained in:
parent
97b465b142
commit
afb3fdba7c
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue