changeset 53343:5deff84a4d48

8199156: Better route routing Reviewed-by: igerasim, mschoene, michaelm, rhalade
author chegar
date Fri, 10 Aug 2018 15:02:30 +0100
parents 066d2261108f
children db202823fd94
files src/java.base/unix/native/libnet/net_util_md.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
                 }