summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/network/tcp_client_socket_handler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/louloulibs/network/tcp_client_socket_handler.cpp b/louloulibs/network/tcp_client_socket_handler.cpp
index 2e90ea1..7f21e3f 100644
--- a/louloulibs/network/tcp_client_socket_handler.cpp
+++ b/louloulibs/network/tcp_client_socket_handler.cpp
@@ -43,10 +43,9 @@ void TCPClientSocketHandler::init_socket(const struct addrinfo* rp)
{
utils::ScopeGuard sg([result](){ freeaddrinfo(result); });
struct addrinfo* rp;
- int bind_error = 0;
for (rp = result; rp; rp = rp->ai_next)
{
- if ((bind_error = ::bind(this->socket,
+ if ((::bind(this->socket,
reinterpret_cast<const struct sockaddr*>(rp->ai_addr),
rp->ai_addrlen)) == 0)
break;