From: Arran Cudbard-Bell Date: Wed, 18 Aug 2021 18:06:18 +0000 (-0500) Subject: Fix heap tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33439ab2f8ffb028f8a571b35c82084c2ac269aa;p=thirdparty%2Ffreeradius-server.git Fix heap tests --- diff --git a/src/lib/util/heap_tests.c b/src/lib/util/heap_tests.c index 677751861de..c182d701c5d 100644 --- a/src/lib/util/heap_tests.c +++ b/src/lib/util/heap_tests.c @@ -7,6 +7,8 @@ static bool fr_heap_check(fr_heap_t *hp, void *data) { unsigned int i; + HEAP_DEREF(hp); + if (!hp || (hp->num_elements == 0)) return false; for (i = 0; i < hp->num_elements; i++) {