]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
ensure that the XLAT_BOX flags are always initialized
authorAlan T. DeKok <aland@freeradius.org>
Fri, 11 Apr 2025 11:07:28 +0000 (07:07 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 11 Apr 2025 13:28:47 +0000 (09:28 -0400)
src/lib/unlang/xlat_alloc.c

index 1686c56d5f4bf38cecbf952b1299b560e9f05550..2ce3f90d8485f3ee3ca18375d7ee1c7f47c87ce3 100644 (file)
@@ -101,6 +101,7 @@ void _xlat_exp_set_type(NDEBUG_LOCATION_ARGS xlat_exp_t *node, xlat_type_t type)
                         *      Initialize the box from the tmpl data.  And then do NOT re-initialize the box
                         *      later.
                         */
+                       node->flags.constant = node->flags.pure = node->flags.can_purify = true;
                        fr_value_box_steal(node, &node->data, tmpl_value(vpt));
                        talloc_free(vpt);
                        goto done;