mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-20 00:10:41 -05:00
BUG/MINOR: proto_tcp: Report warning messages when listeners are bound
When a TCP listener is bound, in the tcp_bind_listener() function, a warning message may be reported and should be displayed on verbose mode. But the warning message is actually lost if the socket is successfully bound because we don't fill the <errmsg> variable in this case. This patch should fix the issue #863. No backport is needed.
This commit is contained in:
parent
3f1977c934
commit
a10000305f
1 changed files with 1 additions and 1 deletions
|
|
@ -677,7 +677,7 @@ int tcp_bind_listener(struct listener *listener, char *errmsg, int errlen)
|
|||
|
||||
/* the socket is ready */
|
||||
listener->state = LI_LISTEN;
|
||||
return err;
|
||||
goto tcp_return;
|
||||
|
||||
tcp_close_return:
|
||||
close(fd);
|
||||
|
|
|
|||
Loading…
Reference in a new issue