# HG changeset patch # User chegar # Date 1298554930 0 # Node ID 130426abe301d9934f0034f62c32bdf51faec291 # Parent 5a1f8762116588ba00df2f0c2b22ff6fae408891 6849693: index of fdTable should be less than num. of fdTable in jdk7 Reviewed-by: alanb diff -r 5a1f87621165 -r 130426abe301 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];