Fix a severe regression introduced with the "disable IPV6_V6ONLY option".
On amd64 every call to getsocktopt returns a "Bad address" SocketException.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= openjdk6
|
||||
PORTVERSION= b22
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= java devel
|
||||
MASTER_SITES= http://download.java.net/openjdk/jdk6/promoted/${PORTVERSION}/ \
|
||||
http://download.java.net/jaxp/openjdk/jdk6/:jaxp \
|
||||
|
||||
@@ -16643,7 +16643,7 @@
|
||||
#endif
|
||||
|
||||
- rv = getsockopt(fd, level, opt, result, len);
|
||||
+ rv = getsockopt(fd, level, opt, result, (socklen_t)len);
|
||||
+ rv = getsockopt(fd, level, opt, result, (socklen_t *) len);
|
||||
if (rv < 0) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user