]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
return the value we parsed
authorAlan T. DeKok <aland@freeradius.org>
Tue, 25 Jan 2022 00:00:48 +0000 (19:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 25 Jan 2022 00:00:48 +0000 (19:00 -0500)
src/lib/server/tmpl_tokenize.c

index 838759f3d9c11b81783dbd081dbdc2a2dbbe318c..60568ffe461765456f93c02973c327f96d4d8a27 100644 (file)
@@ -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);
                }