6849693: index of fdTable should be less than num. of fdTable in jdk7
authorchegar
Thu, 24 Feb 2011 13:42:10 +0000
changeset 8548 130426abe301
parent 8547 5a1f87621165
child 8549 b924a92a7c84
6849693: index of fdTable should be less than num. of fdTable in jdk7 Reviewed-by: alanb
jdk/src/solaris/native/java/net/linux_close.c
--- a/jdk/src/solaris/native/java/net/linux_close.c	Thu Feb 24 12:57:59 2011 +0000
+++ b/jdk/src/solaris/native/java/net/linux_close.c	Thu Feb 24 13:42:10 2011 +0000
@@ -112,7 +112,7 @@
  */
 static inline fdEntry_t *getFdEntry(int fd)
 {
-    if (fd < 0 || fd > fdCount) {
+    if (fd < 0 || fd >= fdCount) {
         return NULL;
     }
     return &fdTable[fd];