diff --git a/src/proto_tcp.c b/src/proto_tcp.c index 09d3e8619..138dd68fc 100644 --- a/src/proto_tcp.c +++ b/src/proto_tcp.c @@ -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);