]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cfgparse: wrong section name upon error
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 7 Jan 2026 17:00:32 +0000 (18:00 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 7 Jan 2026 17:13:12 +0000 (18:13 +0100)
When a unknown keyword was used in the "userlist" section, the error was
mentioning the "users" section, instead of "userlist".

Could be backported in every branches.

src/cfgparse.c

index 9918d12f449ecc91ab59ea4326c0d057117762be..e0adcbe02fb7f2769df4b1db75d9ff659b68aa40 100644 (file)
@@ -1534,7 +1534,7 @@ cfg_parse_users(const char *file, int linenum, char **args, int kwm)
                        }
                }
        } else {
-               ha_alert("parsing [%s:%d]: unknown keyword '%s' in '%s' section\n", file, linenum, args[0], "users");
+               ha_alert("parsing [%s:%d]: unknown keyword '%s' in '%s' section\n", file, linenum, args[0], "userlist");
                err_code |= ERR_ALERT | ERR_FATAL;
        }