mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00
Free recv_data when TF_RXCLOSED is set
This commit is contained in:
parent
a880709776
commit
6ffd29507c
@ -349,6 +349,7 @@ tcp_input(struct pbuf *p, struct netif *inp)
|
|||||||
if (pcb->flags & TF_RXCLOSED) {
|
if (pcb->flags & TF_RXCLOSED) {
|
||||||
/* received data although already closed -> abort (send RST) to
|
/* received data although already closed -> abort (send RST) to
|
||||||
notify the remote host that not all data has been processed */
|
notify the remote host that not all data has been processed */
|
||||||
|
pbuf_free(recv_data);
|
||||||
tcp_abort(pcb);
|
tcp_abort(pcb);
|
||||||
goto aborted;
|
goto aborted;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user