changeset 55476:35e8d1eb4040

8170494: JNI exception pending in PlainDatagramSocketImpl.c Reviewed-by: clanger, vtewari
author igerasim
date Thu, 21 Mar 2019 12:28:58 -0700
parents 3fe41815505c
children 7fbb4340b125
files src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c	Thu Mar 21 11:58:00 2019 -0700
+++ b/src/java.base/unix/native/libnet/PlainDatagramSocketImpl.c	Thu Mar 21 12:28:58 2019 -0700
@@ -1496,6 +1496,7 @@
             CHECK_NULL_RETURN(ni_class, NULL);
         }
         ni = Java_java_net_NetworkInterface_getByInetAddress0(env, ni_class, addr);
+        JNU_CHECK_EXCEPTION_RETURN(env, NULL);
         if (ni) {
             return ni;
         }