From 656dcf4930e5dafea8a0ddaa9ee2d78d67ff471f Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Wed, 6 Jul 2022 14:07:09 -0400 Subject: [PATCH] don't leave shallow references to an sbuff --- src/lib/unlang/xlat_builtin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/unlang/xlat_builtin.c b/src/lib/unlang/xlat_builtin.c index 927bd3c90a5..45efd54a276 100644 --- a/src/lib/unlang/xlat_builtin.c +++ b/src/lib/unlang/xlat_builtin.c @@ -2109,7 +2109,7 @@ static xlat_action_t xlat_func_cast(TALLOC_CTX *ctx, fr_dcursor_t *out, return XLAT_ACTION_FAIL; } - fr_value_box_bstrndup_shallow(dst, NULL, fr_sbuff_start(agg), fr_sbuff_used(agg), false); + fr_value_box_bstrndup(dst, dst, NULL, fr_sbuff_start(agg), fr_sbuff_used(agg), false); fr_dcursor_append(out, dst); return XLAT_ACTION_DONE; -- 2.47.3