diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 53d1f167..a356fc21 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -580,6 +580,7 @@ tcp_rexmit(struct tcp_pcb *pcb) /* Move the first unacked segment to the unsent queue */ seg = pcb->unacked->next; pcb->unacked->next = pcb->unsent; + pcb->unsent = pcb->unacked; pcb->unacked = seg; pcb->snd_nxt = ntohl(pcb->unsent->tcphdr->seqno);