From 7072bc3203607d9eb68d9baa8e7893ea6e6557f1 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 26 Sep 2012 21:21:26 +0200 Subject: [PATCH] Added brackets, completed CHANGELOG --- CHANGELOG | 3 +++ src/core/dhcp.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 8f7af0f8..2cdf73c9 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -80,6 +80,9 @@ HISTORY ++ Bugfixes: + 2012-09-26: patch by Henrik Persson + * dhcp.c: patch #7840 Segfault in dhcp_parse_reply if no end marker in dhcp packet + 2012-08-22: Simon Goldschmidt * memp.c: fixed bug #37166: memp_sanity check loops itself diff --git a/src/core/dhcp.c b/src/core/dhcp.c index 8b2139da..93216574 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -1472,7 +1472,7 @@ decode_next: if (offset >= q->len) { offset -= q->len; offset_max -= q->len; - if (offset < offset_max && offset_max) { + if ((offset < offset_max) && offset_max) { q = q->next; LWIP_ASSERT("next pbuf was null", q); options = (u8_t*)q->payload;