From: Alan T. DeKok Date: Thu, 23 Jan 2025 02:18:58 +0000 (-0500) Subject: add one more assert for tmpl_require_enum_prefix X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f418860701d197eb4e9161345a89bf5d6ace59c;p=thirdparty%2Ffreeradius-server.git add one more assert for tmpl_require_enum_prefix all YES to '&' should have been changed to AUTO by the tmpl tokenizer --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 8955b5cfcb4..810fede5cf5 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -1174,6 +1174,8 @@ ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_head_t const *head, xlat_exp_t * Parsing %{User-Name} gets printed as %{User-Name} */ if (node->vpt->rules.attr.prefix == TMPL_ATTR_REF_PREFIX_YES) { + fr_assert(!tmpl_require_enum_prefix); + if (node->vpt->name[0] != '&') FR_SBUFF_IN_CHAR_RETURN(out, '&'); FR_SBUFF_IN_STRCPY_RETURN(out, node->fmt); goto done;