src/java.base/unix/native/libnet/NetworkInterface.c
changeset 58098 ea93d6a9f720
parent 55753 b9798272720b
child 58202 a45cce906207
equal deleted inserted replaced
58097:fa0514bdc09b 58098:ea93d6a9f720
   237         return NULL;
   237         return NULL;
   238     }
   238     }
   239 
   239 
   240     ifs = enumInterfaces(env);
   240     ifs = enumInterfaces(env);
   241     if (ifs == NULL) {
   241     if (ifs == NULL) {
       
   242         (*env)->ReleaseStringUTFChars(env, name, name_utf);
   242         return NULL;
   243         return NULL;
   243     }
   244     }
   244 
   245 
   245     // search the list of interfaces based on name,
   246     // search the list of interfaces based on name,
   246     // if it is virtual sub interface search with parent first.
   247     // if it is virtual sub interface search with parent first.