From: Alan T. DeKok Date: Fri, 11 Apr 2025 11:07:28 +0000 (-0400) Subject: ensure that the XLAT_BOX flags are always initialized X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e1d9fd4b0bc3af8f036eebfac654cc50c21b0ab1;p=thirdparty%2Ffreeradius-server.git ensure that the XLAT_BOX flags are always initialized --- diff --git a/src/lib/unlang/xlat_alloc.c b/src/lib/unlang/xlat_alloc.c index 1686c56d5f4..2ce3f90d848 100644 --- a/src/lib/unlang/xlat_alloc.c +++ b/src/lib/unlang/xlat_alloc.c @@ -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;