< prev index next >

src/java.base/unix/native/libnet/net_util_md.c

Print this page

        

@@ -278,16 +278,11 @@
     return (*env)->GetFieldID(env, cls, "fd", "I");
 }
 
 jint  IPv4_supported()
 {
-    int fd = socket(AF_INET, SOCK_STREAM, 0) ;
-    if (fd < 0) {
         return JNI_FALSE;
-    }
-    close(fd);
-    return JNI_TRUE;
 }
 
 #if defined(DONT_ENABLE_IPV6)
 jint  IPv6_supported()
 {
< prev index next >