src/solaris/native/java/net/linux_close.c

Print this page

        

@@ -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];
 }