mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-19 05:10:40 +00:00
[etharp] Assert change
assert should fail if - len different from tot_len or - next not zero
This commit is contained in:
parent
73fcf72792
commit
4feb422932
@ -1015,7 +1015,7 @@ etharp_query(struct netif *netif, const ip4_addr_t *ipaddr, struct pbuf *q)
|
|||||||
* new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */
|
* new PBUF_RAM. See the definition of PBUF_NEEDS_COPY for details. */
|
||||||
p = q;
|
p = q;
|
||||||
while (p) {
|
while (p) {
|
||||||
LWIP_ASSERT("no packet queues allowed!", (p->len != p->tot_len) || (p->next == NULL));
|
LWIP_ASSERT("no packet queues allowed!", (p->len == p->tot_len) && (p->next == NULL));
|
||||||
if (PBUF_NEEDS_COPY(p)) {
|
if (PBUF_NEEDS_COPY(p)) {
|
||||||
copy_needed = 1;
|
copy_needed = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user