From: Arran Cudbard-Bell Date: Thu, 31 Mar 2022 17:09:09 +0000 (-0600) Subject: Return NULL on error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c96c9c67f4daf3a1ae9d6cd43e73e253dbd9d727;p=thirdparty%2Ffreeradius-server.git Return NULL on error --- diff --git a/src/lib/util/heap.c b/src/lib/util/heap.c index efefdc8746..3e915cd656 100644 --- a/src/lib/util/heap.c +++ b/src/lib/util/heap.c @@ -326,7 +326,7 @@ void *fr_heap_pop(fr_heap_t **hp) if (unlikely(h == NULL)) { fr_strerror_const("Heap pointer was NULL"); - return -1; + return NULL; } if (h->num_elements == 0) return NULL;