]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: master/cli: properly trim the '@@' process name in error messages
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:47:23 +0000 (17:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Apr 2025 15:52:28 +0000 (17:52 +0200)
commit0e94339eaf1c8423132debb6b1b485d8bb1bb7da
treee6769ac8ddf1a3341d64c68ab042a21353815de3
parent29632bcabf5e76dd248e21afe3120a8f26cda42c
BUG/MINOR: master/cli: properly trim the '@@' process name in error messages

When '@@' alone is sent on the master CLI (no trailing LF), we get an
error that displays anything past these two characters in the buffer
since there's no room for a \0. Let's make sure to limit the length of
the process name in this case. No backport is needed since this was added
with 00c967fac4 ("MINOR: master/cli: support bidirectional communications
with workers").
src/cli.c