tcp: improve check for invalid sack blocks 00/16400/2
authorFlorin Coras <fcoras@cisco.com>
Fri, 7 Dec 2018 02:24:19 +0000 (18:24 -0800)
committerDamjan Marion <dmarion@me.com>
Fri, 7 Dec 2018 15:08:58 +0000 (15:08 +0000)
Change-Id: Ic6a6202a2d5aca33eee7fc6ff8eeaa1db9b58525
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vnet/tcp/tcp_input.c

index 0e91550..dff1802 100644 (file)
@@ -905,7 +905,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_una_max))
+         && seq_gt (blk->start, ack)
+         && seq_lt (blk->start, tc->snd_una_max)
+         && seq_leq (blk->end, tc->snd_una_max))
        {
          blk++;
          continue;