diff options
author | Florin Coras <fcoras@cisco.com> | 2020-05-25 19:15:56 +0000 |
---|---|---|
committer | Florin Coras <fcoras@cisco.com> | 2020-05-25 19:36:59 +0000 |
commit | 3b9540966f877ae67d374cab334c31bd6e3f8c8b (patch) | |
tree | 0ad6a75076ac2e2ea0223ef6469b060dc51084b2 /src/vnet | |
parent | f5db3711b28db4e364ac01be8b124dd24d573782 (diff) |
tcp: fix sack block validation on wrap
Type: fix
Fixes: 487507f
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ia9813ae09d14111dc8edac0fa6ab082e13ab6e2e
Diffstat (limited to 'src/vnet')
-rw-r--r-- | src/vnet/tcp/tcp_sack.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vnet/tcp/tcp_sack.c b/src/vnet/tcp/tcp_sack.c index 589c7f35227..b9e1166d779 100644 --- a/src/vnet/tcp/tcp_sack.c +++ b/src/vnet/tcp/tcp_sack.c @@ -326,7 +326,9 @@ tcp_rcv_sacks (tcp_connection_t * tc, u32 ack) { if (seq_lt (blk->start, blk->end) && seq_gt (blk->start, tc->snd_una) - && seq_gt (blk->start, ack) && seq_leq (blk->end, tc->snd_nxt)) + && seq_gt (blk->start, ack) + && seq_lt (blk->start, tc->snd_nxt) + && seq_leq (blk->end, tc->snd_nxt)) { blk++; continue; |