aboutsummaryrefslogtreecommitdiff
path: root/src/socketengine.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-06-07 13:30:14 +0200
committerGravatar Attila Molnar2014-06-07 13:30:14 +0200
commit30fec322809582f91be70cc1bb16c9678180db76 (patch)
tree464446f79af6259b4e280514eac25bea7777b014 /src/socketengine.cpp
parentm_channames Remove temporary vector from ValidateChans() (diff)
Relax fd bounds checking
We can cope with fds greater than SocketEngine::GetMaxFds() since 3752b3f59d5216d7dc6221a361efc76b9ad2273d
Diffstat (limited to 'src/socketengine.cpp')
-rw-r--r--src/socketengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/socketengine.cpp b/src/socketengine.cpp
index 86608f0a3..c6c520efc 100644
--- a/src/socketengine.cpp
+++ b/src/socketengine.cpp
@@ -136,7 +136,7 @@ bool SocketEngine::BoundsCheckFd(EventHandler* eh)
{
if (!eh)
return false;
- if ((eh->GetFd() < 0) || (eh->GetFd() > GetMaxFds()))
+ if (eh->GetFd() < 0)
return false;
return true;
}