]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cfgparse-listen: always reject extra arguments to "persist"
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Sep 2026 14:37:58 +0000 (16:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2026 07:22:33 +0000 (09:22 +0200)
commit405848889ab758eea46ff19f890e7b4ad7234a84
treec3cb029a0db14872c28c281994c2159e9ee569d2
parentab58e04582de3cb24a5a1871299a4d72e79378eb
BUG/MINOR: cfgparse-listen: always reject extra arguments to "persist"

The check for extra arguments was placed inside the "if" block which
parses "persist rdp-cookie(<name>)", so "persist rdp-cookie foo" was
silently accepted. Let's move it to the beginning of the keyword's
processing so that it covers all the cases.

This must NOT be backported since it makes the config parser stricter.
src/cfgparse-listen.c