mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-25 00:14:02 +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) {
|
||||
/* Chain this pbuf onto the pbuf that we will pass to
|
||||
the application. */
|
||||
if(pcb->recv_data) {
|
||||
pbuf_chain(pcb->recv_data, cseg->p);
|
||||
if(recv_data) {
|
||||
pbuf_chain(recv_data, cseg->p);
|
||||
} else {
|
||||
pcb->recv_data = cseg->p;
|
||||
recv_data = cseg->p;
|
||||
}
|
||||
cseg->p = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user