From 814f8c505e562a1d14e36ac82876af5430b4557a Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 23 Oct 2002 19:58:16 +0000 Subject: [PATCH] Updated TCP out-of-sequence handling to use recv_data variable instead of old pcb->recv_data. --- src/core/tcp_in.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index ede94bab..a21a9516 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -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; }