]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Return NULL on error
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 Mar 2022 17:09:09 +0000 (11:09 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 Mar 2022 17:09:20 +0000 (11:09 -0600)
src/lib/util/heap.c

index efefdc8746715529ff6877baf7da30244eebcef5..3e915cd65634c28314d8adee8ed2e0b8557f7eea 100644 (file)
@@ -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;