]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
%{...} can be T_BARE_WORD
authorAlan T. DeKok <aland@freeradius.org>
Wed, 14 Sep 2022 02:37:07 +0000 (22:37 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 15 Sep 2022 18:41:07 +0000 (14:41 -0400)
src/lib/server/tmpl_tokenize.c

index 4b2e56a1867a550299d0fcc4516738311e7f1f2a..fd816a71c55d90491e8aa8c69ef6726226a1c141 100644 (file)
@@ -5118,7 +5118,7 @@ ssize_t tmpl_preparse(char const **out, size_t *outlen, char const *in, size_t i
                 *      xlats will be treated as strongly typed values
                 *      / lists on their own.
                 */
-               *type = T_DOUBLE_QUOTED_STRING;
+               if (*type == T_INVALID) *type = T_BARE_WORD;
                depth = 0;
                close = (p[1] == '{') ? '}' : ')';