From: Arran Cudbard-Bell Date: Tue, 17 Aug 2021 16:57:36 +0000 (-0500) Subject: Do talloc type checking if we have one set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8335218734bd08cbcb769982612e219922f11e1e;p=thirdparty%2Ffreeradius-server.git Do talloc type checking if we have one set --- diff --git a/src/lib/util/lst.c b/src/lib/util/lst.c index bdc7d7849a8..c44d7fd5c01 100644 --- a/src/lib/util/lst.c +++ b/src/lib/util/lst.c @@ -640,6 +640,10 @@ static inline CC_HINT(nonnull) void _fr_lst_extract(fr_lst_t *lst, stack_index_ */ static inline CC_HINT(nonnull) void _fr_lst_insert(fr_lst_t *lst, stack_index_t stack_index, void *data) { +#ifndef TALLOC_GET_TYPE_ABORT_NOOP + if (lst->type) (void)_talloc_get_type_abort(data, lst->type, __location__); +#endif + if (is_bucket(lst, stack_index)) { bucket_add(lst, stack_index, data); return;