]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fr_asprint() takes a quotation 'char', not a fr_token_t
authorAlan T. DeKok <aland@freeradius.org>
Sat, 16 Sep 2023 17:55:57 +0000 (13:55 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Sep 2023 12:59:59 +0000 (08:59 -0400)
src/lib/server/cf_parse.c

index fd5e117952f54034f88cd6a23a94624b980dd672..fb9afe58b99af3fa3f9a5794a172e42dc67cd9f6 100644 (file)
@@ -74,7 +74,8 @@ void cf_pair_debug(CONF_SECTION const *cs, CONF_PAIR *cp, CONF_PARSER const *rul
         *      Print the strings with the correct quotation character and escaping.
         */
        if (fr_type_is_string(base_type)) {
-               value = tmp = fr_asprint(NULL, cp->value, talloc_array_length(cp->value) - 1, cp->rhs_quote);
+               value = tmp = fr_asprint(NULL, cp->value, talloc_array_length(cp->value) - 1, fr_token_quote[cp->rhs_quote]);
+
        } else {
                value = cf_pair_value(cp);
        }