From: Alan T. DeKok Date: Tue, 1 Feb 2022 16:55:48 +0000 (-0500) Subject: catch more types when printing X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aac8481c2f25fc3bc2cf31324a75db18ad97acab;p=thirdparty%2Ffreeradius-server.git catch more types when printing --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index fb224d43813..88b8c223de1 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -1152,6 +1152,17 @@ static ssize_t xlat_print_node(fr_sbuff_t *out, xlat_exp_t const *head, fr_sbuff FR_SBUFF_RETURN(fr_value_box_print_quoted, out, tmpl_value(node->vpt), node->vpt->quote); goto done; } + if (tmpl_needs_resolving(node->vpt)) { + if (node->vpt->quote != T_BARE_WORD) { + FR_SBUFF_IN_CHAR_RETURN(out, fr_token_quote[node->vpt->quote]); + } + FR_SBUFF_IN_STRCPY_RETURN(out, node->vpt->name); + goto done; + } + if (tmpl_is_xlat(node->vpt)) { + xlat_print(out, tmpl_xlat(node->vpt), fr_value_escape_by_quote[node->quote]); + goto done; + } break; case XLAT_ONE_LETTER: