]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proxy: fix dump_server_state()'s misuse of the trash
authorWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 05:02:42 +0000 (07:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 05:02:42 +0000 (07:02 +0200)
commit6ff8143f7c87ad40d7369119467d779642702ad5
treea496f4f19a57213f5001623561d5ccf0e54533eb
parent2866acfb2361dc4416faeaaf45401e083651d6a2
BUG/MINOR: proxy: fix dump_server_state()'s misuse of the trash

dump_server_state() claims to dump into a buffer but instead it writes
into a buffer then dumps the trash into the channel, so it only supports
being called with buf=&trash and doesn't need this buffer. There doesn't
seem to be any current impact of this mistake since the function is called
from one location only.

A backport may be performed if it helps fixing other bugs but it will not
fix an existing bug by itself.
src/proxy.c