From: Alan T. DeKok Date: Tue, 25 Jan 2022 00:00:48 +0000 (-0500) Subject: return the value we parsed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5628b15d9be4673b47ba6c5a141ce701c96f2455;p=thirdparty%2Ffreeradius-server.git return the value we parsed --- diff --git a/src/lib/server/tmpl_tokenize.c b/src/lib/server/tmpl_tokenize.c index 838759f3d9..60568ffe46 100644 --- a/src/lib/server/tmpl_tokenize.c +++ b/src/lib/server/tmpl_tokenize.c @@ -2631,6 +2631,10 @@ ssize_t tmpl_afrom_substr(TALLOC_CTX *ctx, tmpl_t **out, actual = tmpl_value(vpt); fr_value_box_copy_shallow(NULL, actual, &tmp); + *out = vpt; + + TMPL_VERIFY(vpt); + return fr_sbuff_set(in, &our_in); }