net: tcp: Handle reseqs of length 0
[akaros.git] / kern / src / net / tcp.c
index 887057c..898eb87 100644 (file)
@@ -2129,6 +2129,8 @@ static void track_rcv_sack(Tcpctl *tcb, uint32_t left, uint32_t right)
 
        if (!tcb->sack_ok)
                return;
+       if (left == right)
+               return;
        assert(seq_lt(left, right));
        sack->left = left;
        sack->right = right;