]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
This could equal to the length of the pool
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 May 2024 00:36:15 +0000 (18:36 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 15 May 2024 00:36:15 +0000 (18:36 -0600)
src/lib/util/talloc.c

index ae749e2a03ac1f7e2769f7ee586b1b1a8341669c..4625ca1d38d3341c6b8475f480310ff3fb369d01 100644 (file)
@@ -401,7 +401,7 @@ TALLOC_CTX *talloc_page_aligned_pool(TALLOC_CTX *ctx, void **start, size_t *end_
        /*
         *      We can't protect pages after the pool
         */
-       fr_assert(((uintptr_t)*start + *end_len) < ((uintptr_t)pool + alloced));
+       fr_assert(((uintptr_t)*start + *end_len) <= ((uintptr_t)pool + alloced));
 
        return pool;
 }