< prev index next >

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

Print this page

        

@@ -1242,11 +1242,11 @@
  */
 static int getMacAddress
   (JNIEnv *env, const char *ifname, const struct in_addr *addr,
    unsigned char *buf)
 {
-    static struct ifreq ifr;
+    struct ifreq ifr;
     int i, sock;
 
     if ((sock = openSocketWithFallback(env, ifname)) < 0) {
         return -1;
     }
< prev index next >