]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
set ar_num when creating tmpl_attr from list
authorAlan T. DeKok <aland@freeradius.org>
Sat, 31 Aug 2024 20:06:02 +0000 (16:06 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 31 Aug 2024 20:06:02 +0000 (16:06 -0400)
src/lib/server/tmpl_tokenize.c

index 4caa53abafb065a2550bf3e825396c527c28da23..1e6a16c7f9e3dbf7c51880b9892f5f3e5c646fba 100644 (file)
@@ -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.