mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
fixed compiling TCP_OOSEQ_MAX_BYTES || TCP_OOSEQ_MAX_PBUFS (local variable 'p' was hidden)
This commit is contained in:
parent
aeb3834219
commit
3e23eb764b
@ -997,7 +997,6 @@ tcp_receive(struct tcp_pcb *pcb)
|
|||||||
#if TCP_QUEUE_OOSEQ
|
#if TCP_QUEUE_OOSEQ
|
||||||
struct tcp_seg *prev, *cseg;
|
struct tcp_seg *prev, *cseg;
|
||||||
#endif /* TCP_QUEUE_OOSEQ */
|
#endif /* TCP_QUEUE_OOSEQ */
|
||||||
struct pbuf *p;
|
|
||||||
s32_t off;
|
s32_t off;
|
||||||
s16_t m;
|
s16_t m;
|
||||||
u32_t right_wnd_edge;
|
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
|
adjust the ->data pointer in the seg and the segment
|
||||||
length.*/
|
length.*/
|
||||||
|
|
||||||
|
struct pbuf *p = inseg.p;
|
||||||
off = pcb->rcv_nxt - seqno;
|
off = pcb->rcv_nxt - seqno;
|
||||||
p = inseg.p;
|
|
||||||
LWIP_ASSERT("inseg.p != NULL", inseg.p);
|
LWIP_ASSERT("inseg.p != NULL", inseg.p);
|
||||||
LWIP_ASSERT("insane offset!", (off < 0x7fff));
|
LWIP_ASSERT("insane offset!", (off < 0x7fff));
|
||||||
if (inseg.p->len < off) {
|
if (inseg.p->len < off) {
|
||||||
|
Loading…
Reference in New Issue
Block a user