From: James Jones Date: Fri, 13 May 2022 21:24:40 +0000 (-0500) Subject: Check fr_minmax_heap_alloc() return value (CID #1504069) (#4513) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eabd78f735f3fb1583f94b20ef866c3b2ee2723;p=thirdparty%2Ffreeradius-server.git Check fr_minmax_heap_alloc() return value (CID #1504069) (#4513) --- diff --git a/src/lib/util/minmax_heap_tests.c b/src/lib/util/minmax_heap_tests.c index aa0aa6659b5..fa9e8295c8f 100644 --- a/src/lib/util/minmax_heap_tests.c +++ b/src/lib/util/minmax_heap_tests.c @@ -232,6 +232,7 @@ static void minmax_heap_burn_in(void) for (unsigned int i = 0; i < BURN_IN_OPS; i++) array[i].data = fr_fast_rand(&rand_ctx) % 65537; hp = fr_minmax_heap_alloc(NULL, minmax_heap_cmp, minmax_heap_thing, idx, 0); + TEST_CHECK(hp != NULL); for (unsigned int i = 0; i < BURN_IN_OPS; i++) { minmax_heap_thing *ret_thing = NULL;