changeset 11874:f4bb6973e2ce

8165320: Small flaw when integrating 8160174 to JDK8 Reviewed-by: chegar, robm
author clanger
date Fri, 02 Sep 2016 15:54:57 +0200
parents 3ef283ecb752
children ffa5c441e033
files src/solaris/native/java/net/NetworkInterface.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/native/java/net/NetworkInterface.c	Sat Sep 03 13:33:43 2016 +0300
+++ b/src/solaris/native/java/net/NetworkInterface.c	Fri Sep 02 15:54:57 2016 +0200
@@ -1350,9 +1350,9 @@
 static int openSocketWithFallback(JNIEnv *env, const char *ifname) {
     int sock;
 
-    if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
+    if ((sock = JVM_Socket(AF_INET, SOCK_DGRAM, 0)) < 0) {
         if (errno == EPROTONOSUPPORT) {
-            if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
+            if ((sock = JVM_Socket(AF_INET6, SOCK_DGRAM, 0)) < 0) {
                 NET_ThrowByNameWithLastError
                     (env, JNU_JAVANETPKG "SocketException", "IPV6 Socket creation failed");
                 return -1;