From 3cdfc67dd8ce8b5ac5abf0359ebc61f1787035ec Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Tue, 19 Jun 2018 21:29:16 +0200 Subject: [PATCH] ip4_frag: fix assertion on wrong pbuf see bug #54117 Signed-off-by: Simon Goldschmidt --- src/core/ipv4/ip4_frag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ipv4/ip4_frag.c b/src/core/ipv4/ip4_frag.c index 3c0d3c15..39a6f55b 100644 --- a/src/core/ipv4/ip4_frag.c +++ b/src/core/ipv4/ip4_frag.c @@ -801,7 +801,7 @@ ip4_frag(struct pbuf *p, struct netif *netif, const ip4_addr_t *dest) goto memerr; } LWIP_ASSERT("this needs a pbuf in one piece!", - (p->len >= (IP_HLEN))); + (rambuf->len >= (IP_HLEN))); SMEMCPY(rambuf->payload, original_iphdr, IP_HLEN); iphdr = (struct ip_hdr *)rambuf->payload;