]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Pass safe_for to xlat_tokenize_input
authorNick Porter <nick@portercomputing.co.uk>
Thu, 1 Feb 2024 17:48:46 +0000 (17:48 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 7 Feb 2024 10:41:07 +0000 (10:41 +0000)
src/lib/unlang/xlat_tokenize.c

index aba71092bebe7465e59d68ef0bed1e4c62f202a5..423d9012aecda579cfecf2a46301d246fb058663 100644 (file)
@@ -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);
        }