From 172b14d74383bea648bbf22be5357c65e0bb7bf1 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Sat, 31 Aug 2024 16:06:02 -0400 Subject: [PATCH] set ar_num when creating tmpl_attr from list --- src/lib/server/tmpl_tokenize.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index 4caa53abaf..1e6a16c7f9 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -1259,6 +1259,9 @@ int tmpl_attr_afrom_list(TALLOC_CTX *ctx, tmpl_t **out, tmpl_t const *list, fr_d ar->ar_da = da; ar->ar_parent = fr_dict_root(fr_dict_by_da(da)); + ar->ar_filter_type = TMPL_ATTR_FILTER_NONE; + ar->ar_num = NUM_UNSPEC; + /* * We need to rebuild the attribute name, to be the * one we copied from the source list. -- 2.47.2