commit f37c98c5cf3d75c430fb561baad277eb9d5cde15
parent 79c6f9d5246e941cadcb293fb88962e3cbee4c01
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 5 Apr 2023 14:08:01 +0300
memorypool: fixed wrong pointer comparison introduced by 3444792f14d96a58648add92b8f3b70e4babf772
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
@@ -125,7 +125,7 @@
* Boolean 'true' if the first pointer is less or equal the second pointer
*/
#define mp_ptr_le_(p1,p2) \
- (((uintptr_t)((const void*)(p1))) <= ((uintptr_t)((const void*)(p1))))
+ (((uintptr_t)((const void*)(p1))) <= ((uintptr_t)((const void*)(p2))))
/**
* The difference in bytes between positions of the first and
* the second pointers