mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-18 00:40:28 +00:00
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:
parent
a7718b2ef3
commit
6e612e5def
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user