@@ -110,11 +110,11 @@ * Return the fd table for this fd or NULL is fd out * of range. */ static inline fdEntry_t *getFdEntry(int fd) { - if (fd < 0 || fd > fdCount) { + if (fd < 0 || fd >= fdCount) { return NULL; } return &fdTable[fd]; }