From: Alan T. DeKok Date: Sat, 16 Sep 2023 15:15:04 +0000 (-0400) Subject: allow T_HASH for edit sections. See map_afrom_cp() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43835a540a37924026887a1d4c39ad72972bcff;p=thirdparty%2Ffreeradius-server.git allow T_HASH for edit sections. See map_afrom_cp() --- diff --git a/src/lib/server/cf_file.c b/src/lib/server/cf_file.c index ea216618f51..882bbb6efa3 100644 --- a/src/lib/server/cf_file.c +++ b/src/lib/server/cf_file.c @@ -767,8 +767,9 @@ int cf_section_pass2(CONF_SECTION *cs) if (!cp->value || !cp->pass2) continue; fr_assert((cp->rhs_quote == T_BARE_WORD) || - (cp->rhs_quote == T_DOUBLE_QUOTED_STRING) || - (cp->rhs_quote == T_BACK_QUOTED_STRING)); + (cp->rhs_quote == T_HASH) || + (cp->rhs_quote == T_DOUBLE_QUOTED_STRING) || + (cp->rhs_quote == T_BACK_QUOTED_STRING)); value = cf_expand_variables(ci->filename, ci->lineno, cs, buffer, sizeof(buffer), cp->value, -1, NULL); if (!value) return -1;