changeset 3818:1f41e41ef2db

6849693: index of fdTable should be less than num. of fdTable in jdk7 Reviewed-by: alanb
author chegar
date Thu, 24 Feb 2011 13:42:10 +0000
parents c2c8f9c38fd1
children 51ef29aafc1b
files src/solaris/native/java/net/linux_close.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/linux_close.c	Thu Feb 24 12:57:59 2011 +0000
+++ b/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];