author | chegar |
Sun, 22 May 2016 19:06:23 +0100 | |
changeset 38459 | 6cf90640c38c |
parent 38458 | 959129656ec2 |
child 38460 | f521277035db |
--- a/jdk/src/java.base/unix/native/libnet/net_util_md.c Sat May 21 13:18:15 2016 +0200 +++ b/jdk/src/java.base/unix/native/libnet/net_util_md.c Sun May 22 19:06:23 2016 +0100 @@ -353,6 +353,7 @@ if (getsockname(0, (struct sockaddr *)&sa, &sa_len) == 0) { struct sockaddr *saP = (struct sockaddr *)&sa; if (saP->sa_family != AF_INET6) { + close(fd); return JNI_FALSE; } }