Updated TCP out-of-sequence handling to use recv_data variable instead of old pcb->recv_data.

This commit is contained in:
adamdunkels 2002-10-23 19:58:16 +00:00
parent fbd9fa5d94
commit 814f8c505e

View File

@ -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;
}