8199156: Better route routing
authorchegar
Fri, 10 Aug 2018 15:02:30 +0100
changeset 53317 5deff84a4d48
parent 53316 066d2261108f
child 53318 db202823fd94
8199156: Better route routing Reviewed-by: igerasim, mschoene, michaelm, rhalade
src/java.base/unix/native/libnet/net_util_md.c
--- a/src/java.base/unix/native/libnet/net_util_md.c	Fri Aug 10 14:35:44 2018 +0100
+++ b/src/java.base/unix/native/libnet/net_util_md.c	Fri Aug 10 15:02:30 2018 +0100
@@ -584,6 +584,8 @@
 
                 if (loRoutesTemp == 0) {
                     free(loRoutes);
+                    loRoutes = NULL;
+                    nRoutes = 0;
                     fclose (f);
                     return;
                 }