Skip to content

Commit d362151

Browse files
BasharRadyagalnoam
authored andcommitted
issue: 4607536 Update pcb->last_unsent/last_unacked in tcp_abandon
After nullifying pcb->unsent/unacked we need to nullify pcb->last_unsent/last_unacked Signed-off-by: Bashar Abdelgafer <[email protected]>
1 parent a2ebddf commit d362151

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/vma/lwip/tcp.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,10 +359,12 @@ tcp_abandon(struct tcp_pcb *pcb, int reset)
359359
if (pcb->unacked != NULL) {
360360
tcp_tx_segs_free(pcb, pcb->unacked);
361361
pcb->unacked = NULL;
362+
pcb->last_unacked = NULL;
362363
}
363364
if (pcb->unsent != NULL) {
364365
tcp_tx_segs_free(pcb, pcb->unsent);
365366
pcb->unsent = NULL;
367+
pcb->last_unsent = NULL;
366368
}
367369
#if TCP_QUEUE_OOSEQ
368370
if (pcb->ooseq != NULL) {

0 commit comments

Comments
 (0)