From 3e23eb764b81ac598bfe97a4c5759562f00efc19 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Thu, 25 Aug 2016 14:20:15 +0200 Subject: [PATCH] fixed compiling TCP_OOSEQ_MAX_BYTES || TCP_OOSEQ_MAX_PBUFS (local variable 'p' was hidden) --- src/core/tcp_in.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 2ad8f006..c618e006 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -997,7 +997,6 @@ tcp_receive(struct tcp_pcb *pcb) #if TCP_QUEUE_OOSEQ struct tcp_seg *prev, *cseg; #endif /* TCP_QUEUE_OOSEQ */ - struct pbuf *p; s32_t off; s16_t m; u32_t right_wnd_edge; @@ -1314,8 +1313,8 @@ tcp_receive(struct tcp_pcb *pcb) adjust the ->data pointer in the seg and the segment length.*/ + struct pbuf *p = inseg.p; off = pcb->rcv_nxt - seqno; - p = inseg.p; LWIP_ASSERT("inseg.p != NULL", inseg.p); LWIP_ASSERT("insane offset!", (off < 0x7fff)); if (inseg.p->len < off) {