From 41a84ef1d355c20463c5fc59c5ea4e432797f902 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 9 Mar 2007 07:15:04 +0000 Subject: [PATCH] Fixed bug #11400-2: New etharp queueing introduced bug: memp_memory was allocated too small. --- CHANGELOG | 4 ++++ src/core/memp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 810478b4..fcf35cc1 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -54,6 +54,10 @@ HISTORY ++ Bug fixes: + 2007-03-09 Simon Goldschmidt + * memp.c: Fixed bug #11400: New etharp queueing introduced bug: memp_memory + was allocated too small. + 2007-03-06 Simon Goldschmidt * tcpip.c: Initialize dhcp timers in tcpip_thread (if LWIP_DHCP) to protect the stack from concurrent access. diff --git a/src/core/memp.c b/src/core/memp.c index aad5e232..156117ce 100644 --- a/src/core/memp.c +++ b/src/core/memp.c @@ -103,7 +103,7 @@ static u8_t memp_memory[MEM_ALIGNMENT - 1 + MEMP_TYPE_SIZE(MEMP_NUM_NETCONN, struct netconn) + MEMP_TYPE_SIZE(MEMP_NUM_TCPIP_MSG, struct tcpip_msg) + #if ARP_QUEUEING - MEMP_TYPE_SIZE(MEMP_NUM_TCPIP_MSG, struct etharp_q_entry) + + MEMP_TYPE_SIZE(MEMP_NUM_ARP_QUEUE, struct etharp_q_entry) + #endif MEMP_TYPE_SIZE(MEMP_NUM_SYS_TIMEOUT, struct sys_timeo)];