diff options
Diffstat (limited to 'source/OSSupport')
-rw-r--r-- | source/OSSupport/Socket.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/OSSupport/Socket.cpp b/source/OSSupport/Socket.cpp index 8d6a5ee94..d44a343e0 100644 --- a/source/OSSupport/Socket.cpp +++ b/source/OSSupport/Socket.cpp @@ -239,10 +239,9 @@ cSocket cSocket::Accept() cSocket SClient = accept(m_Socket, (sockaddr*)&from, &fromlen); - if (from.sin_addr.s_addr && SClient.IsValid()) // Get IP in string form + if (SClient.IsValid() && (from.sin_addr.s_addr != 0)) // Get IP in string form { SClient.m_IPString = inet_ntoa(from.sin_addr); - //LOG("cSocket::Accept() %s", SClient.m_IPString); } return SClient; |