summaryrefslogtreecommitdiff
path: root/src/inspsocket.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-27 17:20:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-07-27 17:20:41 +0000
commit156c232d1d22568d20ec498c4bd344bf03052e4a (patch)
tree8ed920712146b182ef5c95604a597a808ca604a6 /src/inspsocket.cpp
parentf3624af468d769f0cb05cf17cd18111f5faa9ec3 (diff)
Found the bug, turns out i just introduced it with the last commit :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7591 e03df62e-2008-0410-955e-edbf42e46eb7
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;