From: Alan T. DeKok Date: Sat, 16 Sep 2023 17:55:57 +0000 (-0400) Subject: fr_asprint() takes a quotation 'char', not a fr_token_t X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1064065e08bf657de89eb721d441fc4f24e54bb;p=thirdparty%2Ffreeradius-server.git fr_asprint() takes a quotation 'char', not a fr_token_t --- diff --git a/src/lib/server/cf_parse.c b/src/lib/server/cf_parse.c index fd5e117952f..fb9afe58b99 100644 --- a/src/lib/server/cf_parse.c +++ b/src/lib/server/cf_parse.c @@ -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); }