]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cli: Reject payload with no command
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Sep 2026 08:09:40 +0000 (10:09 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Sep 2026 09:41:18 +0000 (11:41 +0200)
commit45a8f06d4c00b84f96fa0e297dfa2d7342b6699a
tree427c826676369a375c013b248f2d6a1aeb45db22
parent40cca6d20d383ea3021b151e4485f087fa83f28b
BUG/MINOR: cli: Reject payload with no command

No error is reported during command line parsing when a payload pattern is
found with no command. It is not really a big deal because when the command
is processed, because there is no command, nothing is executed. It is
harmless.

But, accordingly to the doc, the payload is the last argument of a
command. So a command is required. Thus, an error is now reported when a
payload is received with no command.

This patch could be backported to 3.4. Older versions could benefit of this
patch. If we decide to backport it farther, the patch will have to be
adapted.
src/cli.c