From: Nick Porter Date: Fri, 1 Mar 2024 10:29:04 +0000 (+0000) Subject: Correct terminals for parsing barewords X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08f1c2a6d742743c245416481497ebbb8098daba;p=thirdparty%2Ffreeradius-server.git Correct terminals for parsing barewords Without "", the trailing '\0' gets included in enumerated values - then the hash is different to that built when the dictionary was read. --- diff --git a/src/lib/util/pair_legacy.c b/src/lib/util/pair_legacy.c index 371ecf8c213..2a854560ea6 100644 --- a/src/lib/util/pair_legacy.c +++ b/src/lib/util/pair_legacy.c @@ -83,8 +83,10 @@ static size_t pair_comparison_op_table_len = NUM_ELEMENTS(pair_comparison_op_tab */ static fr_sbuff_parse_rules_t const bareword_unquoted = { .terminals = &FR_SBUFF_TERMS( + L(""), L("\t"), L("\n"), + L("\r"), L(" "), L(","), L("}")