From 882ca87442fc2ac2b468f1f24d5fe79337ee85ce Mon Sep 17 00:00:00 2001 From: David Cermak Date: Wed, 22 Aug 2018 08:52:41 +0200 Subject: [PATCH] lwip: removed ASSERT in dhcp as the error might occur in runtime if packet is altered --- components/lwip/core/ipv4/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lwip/core/ipv4/dhcp.c b/components/lwip/core/ipv4/dhcp.c index 2c4a6b3d26..a31c69904b 100644 --- a/components/lwip/core/ipv4/dhcp.c +++ b/components/lwip/core/ipv4/dhcp.c @@ -1712,7 +1712,7 @@ decode_next: offset_max -= q->len; if ((offset < offset_max) && offset_max) { q = q->next; - LWIP_ASSERT("next pbuf was null", q); + LWIP_ERROR("offset pointed to next pbuf which is null", q , return ERR_VAL;); options = (u8_t*)q->payload; } else { /* We've run out of bytes, probably no end marker. Don't proceed. */