]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct terminals for parsing barewords
authorNick Porter <nick@portercomputing.co.uk>
Fri, 1 Mar 2024 10:29:04 +0000 (10:29 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Fri, 1 Mar 2024 10:29:04 +0000 (10:29 +0000)
Without "", the trailing '\0' gets included in enumerated values - then
the hash is different to that built when the dictionary was read.

src/lib/util/pair_legacy.c

index 371ecf8c213925e19f521b1cf6d684dff58df45c..2a854560ea640b313dbfe5b7beb427ca136d1ef7 100644 (file)
@@ -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("}")