From 6e612e5def3b26475c62d8f6955939ec0111c7c7 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 28 Nov 2007 18:24:08 +0000 Subject: [PATCH] mem_malloc with MEM_USE_POOLS=1: if size > size of biggest pool and custom pools (in addition to the MEM_POOLs) were defined, the first custom pool was used instead of asserting --- src/core/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mem.c b/src/core/mem.c index 03855484..e5c1ca4b 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -79,7 +79,7 @@ mem_malloc(mem_size_t size) break; } } - if (poolnr == MEMP_MAX) { + if (poolnr > MEMP_POOL_LAST) { LWIP_ASSERT("mem_malloc(): no pool is that big!", 0); return NULL; }