if (skb == tcp_send_head(sk))
break;
- if (before(TCP_SKB_CB(skb)->end_seq, skip_to_seq))
+ if (!before(TCP_SKB_CB(skb)->end_seq, skip_to_seq))
break;
}
return skb;
continue;
}
- if (!before(start_seq, tcp_highest_sack_seq(tp))) {
+ if (tp->sacked_out && !before(start_seq, tcp_highest_sack_seq(tp))) {
skb = tcp_write_queue_next(sk, tp->highest_sack);
fack_count = tp->fackets_out;
}