]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: proto_tcp: keep error msg if listen() fails
authorValentine Krasnobaeva <vkrasnobaeva@haproxy.com>
Wed, 7 Aug 2024 17:34:07 +0000 (19:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Aug 2024 14:34:06 +0000 (16:34 +0200)
commit81f48395b325b9875d215ec2743e75f7a56e1e5f
treec55d73ee0b8d5b1ab3f8f154991e21aa2e7c5139
parent308c6881c03b6302afd5cc48781d73a11ef994d4
BUG/MINOR: proto_tcp: keep error msg if listen() fails

If listen() fails, we need to keep the message about it, which is copied then
in errmsg buffer on the error path. This buffer is properly provided by the
caller (protocol_bind_all()) and reallocated if needed in memprintf(), but
it was deleted without being returned.

This can be backported to all stable versions.
src/proto_tcp.c