]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
allow T_HASH for edit sections. See map_afrom_cp()
authorAlan T. DeKok <aland@freeradius.org>
Sat, 16 Sep 2023 15:15:04 +0000 (11:15 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 17 Sep 2023 12:59:59 +0000 (08:59 -0400)
src/lib/server/cf_file.c

index ea216618f51d570f99a6f8a28ca0e6a46554d358..882bbb6efa36c1dfbbde4953f95e208e72e0d5af 100644 (file)
@@ -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;