jdk/src/java.base/unix/native/libnet/NetworkInterface.c
changeset 43100 a7e3457672c7
parent 42945 1a9931e1c0f5
child 44927 d554736d963e
--- a/jdk/src/java.base/unix/native/libnet/NetworkInterface.c	Fri Jan 13 01:07:50 2017 -0800
+++ b/jdk/src/java.base/unix/native/libnet/NetworkInterface.c	Fri Jan 13 13:12:21 2017 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -791,7 +791,7 @@
     int sock;
 
     sock = openSocket(env, AF_INET);
-    if (sock < 0 && (*env)->ExceptionOccurred(env)) {
+    if (sock < 0) {
         return NULL;
     }
 
@@ -809,7 +809,7 @@
     // so we have to call ipv6_available()
     if (ipv6_available()) {
         sock = openSocket(env, AF_INET6);
-        if (sock < 0 && (*env)->ExceptionOccurred(env)) {
+        if (sock < 0) {
             freeif(ifs);
             return NULL;
         }