]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: server/cli: add missing LF at the end of certain notice/error lines
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 16:43:14 +0000 (17:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Feb 2024 17:21:52 +0000 (18:21 +0100)
commiteaeb67bdb494ff92190ac5ec43c630b99bedf874
tree8ba858ca6525643ccca35abec4c6f2a43e0c6782
parent870e2d3f1f1180391c6d6cd6658c48a76bd91e5a
BUG/MINOR: server/cli: add missing LF at the end of certain notice/error lines

Some cli_err(), cli_msg() or even ha_error() etc are missing the trailing
LF, which breaks the continuity of the CLI parsing: the extra LF that serves
to mark the end of the command is in fact taken as the missing LF and no
extra one is added.

This patch adds the missing LF on identified messages. It might be worth
trying to proceed in a more generic way with this, given the amount of
code that is possibly at risk.
src/server.c