summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspsocket.cpp')
-rw-r--r--src/inspsocket.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp
index 3eddb6f62..1de46e316 100644
--- a/src/inspsocket.cpp
+++ b/src/inspsocket.cpp
@@ -378,13 +378,7 @@ std::string InspSocket::GetIP()
char* InspSocket::Read()
{
- if (Instance->SE->BoundsCheckFd(this))
- return NULL;
-#ifdef WINDOWS
- if ((fd < 0) || (m_internalFd > MAX_DESCRIPTORS))
-#else
- if ((fd < 0) || (fd > MAX_DESCRIPTORS))
-#endif
+ if (!Instance->SE->BoundsCheckFd(this))
return NULL;
int n = 0;