mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-12 21:41:28 +00:00
Updated TCP out-of-sequence handling to use recv_data variable instead of old pcb->recv_data.
This commit is contained in:
parent
fbd9fa5d94
commit
814f8c505e
@ -926,10 +926,10 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
if(cseg->p->tot_len > 0) {
|
if(cseg->p->tot_len > 0) {
|
||||||
/* Chain this pbuf onto the pbuf that we will pass to
|
/* Chain this pbuf onto the pbuf that we will pass to
|
||||||
the application. */
|
the application. */
|
||||||
if(pcb->recv_data) {
|
if(recv_data) {
|
||||||
pbuf_chain(pcb->recv_data, cseg->p);
|
pbuf_chain(recv_data, cseg->p);
|
||||||
} else {
|
} else {
|
||||||
pcb->recv_data = cseg->p;
|
recv_data = cseg->p;
|
||||||
}
|
}
|
||||||
cseg->p = NULL;
|
cseg->p = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user