]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct heap talloc types
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 4 Mar 2022 00:22:59 +0000 (18:22 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 4 Mar 2022 00:22:59 +0000 (18:22 -0600)
src/lib/util/heap.c

index e0900cde5ce806386c74af3a1e0a5a237337098c..4f0449e6c35a76f32321abf3b439eead72a8ac93 100644 (file)
@@ -71,7 +71,7 @@ fr_heap_t *_fr_heap_alloc(TALLOC_CTX *ctx, fr_heap_cmp_t cmp, char const *type,
         */
        h = (fr_heap_ext_t *)talloc_array(hp, uint8_t, sizeof(fr_heap_ext_t) + (sizeof(void *) * (init + 1)));
        if (unlikely(!h)) return NULL;
-       talloc_set_type(h, heap_t);
+       talloc_set_type(h, fr_heap_ext_t);
 
        *h = (fr_heap_ext_t){
                .size = init,
@@ -171,7 +171,7 @@ int fr_heap_insert(fr_heap_t *hp, void *data)
                                           n_size, (n_size * (unsigned int)sizeof(void *)));
                        return -1;
                }
-               talloc_set_type(h, heap_t);
+               talloc_set_type(h, fr_heap_ext_t);
                h->size = n_size;
                *hp = h;
        }