aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/utils/socket
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/utils/socket')
-rw-r--r--src/lib/utils/socket/socket.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/utils/socket/socket.cpp b/src/lib/utils/socket/socket.cpp
index f263531dd..e7ed7e7e5 100644
--- a/src/lib/utils/socket/socket.cpp
+++ b/src/lib/utils/socket/socket.cpp
@@ -238,12 +238,12 @@ class BSD_Socket final : public OS::Socket
int active = 0;
if(nonblocking_connect_in_progress())
{
- struct timeval timeout = make_timeout_tv();
+ struct timeval timeout_tv = make_timeout_tv();
fd_set write_set;
FD_ZERO(&write_set);
FD_SET(m_socket, &write_set);
- active = ::select(m_socket + 1, nullptr, &write_set, nullptr, &timeout);
+ active = ::select(m_socket + 1, nullptr, &write_set, nullptr, &timeout_tv);
if(active)
{