X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsocketengine.cpp;h=c6c520efcd12501212dabdddca8cd930e528076b;hb=30fec322809582f91be70cc1bb16c9678180db76;hp=86608f0a31d90c4461020916ae0541deb844c99d;hpb=4d7c590bb6a937c4c412241ae67b9fc74083b365;p=user%2Fhenk%2Fcode%2Finspircd.git 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; }