From 9ae5dab4288b7fd1e72ec80dd29b5e396ac64260 Mon Sep 17 00:00:00 2001 From: ihchoi12 Date: Thu, 31 Aug 2023 03:13:52 +0000 Subject: [PATCH] [inetstack] Bug Fix: TCP ctrlblk checks SeqNumber of out-of-order FIN --- src/rust/inetstack/protocols/tcp/established/ctrlblk.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rust/inetstack/protocols/tcp/established/ctrlblk.rs b/src/rust/inetstack/protocols/tcp/established/ctrlblk.rs index 5497d7df4..eaa7d8f08 100644 --- a/src/rust/inetstack/protocols/tcp/established/ctrlblk.rs +++ b/src/rust/inetstack/protocols/tcp/established/ctrlblk.rs @@ -1122,8 +1122,9 @@ impl ControlBlock { if added_out_of_order { match self.out_of_order_fin.get() { Some(fin) => { - debug_assert_eq!(fin, recv_next); - return true; + if fin == recv_next { + return true; + } }, _ => (), }