mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 12:00:53 +00:00
Minor fix: bug #28555: Retransmission timer only stopped if TCP_QUEUE_OOSEQ==1
This commit is contained in:
parent
8596bb7e7e
commit
59005b544f
@ -1237,14 +1237,14 @@ tcp_pcb_purge(struct tcp_pcb *pcb)
|
||||
if (pcb->ooseq != NULL) {
|
||||
LWIP_DEBUGF(TCP_DEBUG, ("tcp_pcb_purge: data left on ->ooseq\n"));
|
||||
}
|
||||
tcp_segs_free(pcb->ooseq);
|
||||
pcb->ooseq = NULL;
|
||||
#endif /* TCP_QUEUE_OOSEQ */
|
||||
|
||||
/* Stop the retransmission timer as it will expect data on unacked
|
||||
queue if it fires */
|
||||
pcb->rtime = -1;
|
||||
|
||||
tcp_segs_free(pcb->ooseq);
|
||||
pcb->ooseq = NULL;
|
||||
#endif /* TCP_QUEUE_OOSEQ */
|
||||
tcp_segs_free(pcb->unsent);
|
||||
tcp_segs_free(pcb->unacked);
|
||||
pcb->unacked = pcb->unsent = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user