]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: httpclient/cli: display junk characters in vsn
authorWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Feb 2022 10:37:02 +0000 (11:37 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 16 Feb 2022 10:37:02 +0000 (11:37 +0100)
commitde6ecc3aceaf93612eb37ff5a913fcd8e741ea67
tree55e870afb69e99db1d9295a7818f0674181a7b0a
parentd544d33e10868963407212660466aa552d5888e6
BUG/MINOR: httpclient/cli: display junk characters in vsn

ist are not ended by '\0', leading to junk characters being displayed
when using %s for printing the HTTP start line.

Fix the issue by replacing %s by %.*s + istlen.

Must be backported in 2.5.
src/http_client.c