Mercurial > hg > release > icedtea7-forest-2.3 > jdk
changeset 6368:3a309ca34b1e
8019969: nioNetworkChannelInet6/SetOptionGetOptionTestInet6 test case crashes
Reviewed-by: chegar
author | michaelm |
---|---|
date | Mon, 15 Jul 2013 16:00:57 +0100 |
parents | 1dc6f256b3ea |
children | 62b609f82191 |
files | src/windows/native/java/net/net_util_md.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/windows/native/java/net/net_util_md.c Thu Jul 11 23:16:26 2013 +0100 +++ b/src/windows/native/java/net/net_util_md.c Mon Jul 15 16:00:57 2013 +0100 @@ -851,7 +851,6 @@ family = (iafam == IPv4)? AF_INET : AF_INET6; if (ipv6_available() && !(family == AF_INET && v4MappedAddress == JNI_FALSE)) { struct SOCKADDR_IN6 *him6 = (struct SOCKADDR_IN6 *)him; - jbyteArray ipaddress; jbyte caddr[16]; jint address, scopeid = 0; jint cached_scope_id = 0; @@ -872,10 +871,9 @@ caddr[15] = (address & 0xff); } } else { - ipaddress = (*env)->GetObjectField(env, iaObj, ia6_ipaddressID); - scopeid = (jint)(*env)->GetIntField(env, iaObj, ia6_scopeidID); + getInet6Address_ipaddress(env, iaObj, (char *)caddr); + scopeid = getInet6Address_scopeid(env, iaObj); cached_scope_id = (jint)(*env)->GetIntField(env, iaObj, ia6_cachedscopeidID); - (*env)->GetByteArrayRegion(env, ipaddress, 0, 16, caddr); } memset((char *)him6, 0, sizeof(struct SOCKADDR_IN6));