From: Alan T. DeKok Date: Sat, 31 Aug 2024 20:06:02 +0000 (-0400) Subject: set ar_num when creating tmpl_attr from list X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=172b14d74383bea648bbf22be5357c65e0bb7bf1;p=thirdparty%2Ffreeradius-server.git set ar_num when creating tmpl_attr from list --- 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.