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

This commit is contained in:
goldsimon 2007-11-28 18:24:08 +00:00
parent a7718b2ef3
commit 6e612e5def

View File

@ -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;
}