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.
This commit is contained in:
Valentine Krasnobaeva 2024-08-07 19:34:07 +02:00 committed by Willy Tarreau
parent 308c6881c0
commit 81f48395b3