From 4feb422932db7194c95323eaaf8b3d92fc1137a2 Mon Sep 17 00:00:00 2001 From: Kons Date: Fri, 2 Aug 2024 21:45:33 +0200 Subject: [PATCH] [etharp] Assert change assert should fail if - len different from tot_len or - next not zero --- src/core/ipv4/etharp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/etharp.c b/src/core/ipv4/etharp.c index 3092dc94..520abb9e 100644 --- a/src/core/ipv4/etharp.c +++ b/src/core/ipv4/etharp.c @@ -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. */ p = q; 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)) { copy_needed = 1; break;