Got it, Thanks Simon!
Hi Dave,
Am 19.03.2019 um 23:09 schrieb Dave Nadler:
[..]
// DRN: below calls LwIP tcpip_input, which calls
tcpip_inpkt, who enqueues msg with pointer p into sys_mbox_t
tcpip_mbox
if (netif->input( p, netif) != ERR_OK )
{
pbuf_free(p); // DRN: Serious bug! p is placed in
mailbox
by netif->input and may not yet have been processed!
No bug: the pbuf is put into the queue if ERR_OK is returned only.
If an
error is returned, the queue was full so the pbuf must be freed
here.
Regards,
Simon
}
}
} while(p!=NULL);
}
}
}
--
Dave Nadler, USA East Coast voice (978) 263-0097, address@hidden, Skype
Dave.Nadler1
|