From: Nick Porter Date: Thu, 1 Feb 2024 17:48:46 +0000 (+0000) Subject: Pass safe_for to xlat_tokenize_input X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edd2494c070343862c74d5378dc796ad125c22d3;p=thirdparty%2Ffreeradius-server.git Pass safe_for to xlat_tokenize_input --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index aba71092beb..423d9012aec 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -1636,7 +1636,7 @@ fr_slen_t xlat_tokenize(TALLOC_CTX *ctx, xlat_exp_head_t **out, fr_sbuff_t *in, fr_strerror_clear(); /* Clear error buffer */ - if (xlat_tokenize_input(head, &our_in, p_rules, t_rules, 0) < 0) { + if (xlat_tokenize_input(head, &our_in, p_rules, t_rules, t_rules ? t_rules->literal.safe_for : 0) < 0) { talloc_free(head); FR_SBUFF_ERROR_RETURN(&our_in); }