am 8223a7f0: am ee41b1df: Merge "Fix libcore translation of AF_UNSPEC InetAddress instances."
* commit '8223a7f0c4dd1119d05199f48fe70d854cd8b558':
Fix libcore translation of AF_UNSPEC InetAddress instances.
diff --git a/luni/src/main/native/NetworkUtilities.cpp b/luni/src/main/native/NetworkUtilities.cpp
index de07201..7215306 100644
--- a/luni/src/main/native/NetworkUtilities.cpp
+++ b/luni/src/main/native/NetworkUtilities.cpp
@@ -113,6 +113,7 @@
static jfieldID familyFid = env->GetFieldID(JniConstants::inetAddressClass, "family", "I");
ss.ss_family = env->GetIntField(inetAddress, familyFid);
if (ss.ss_family == AF_UNSPEC) {
+ sa_len = sizeof(ss.ss_family);
return true; // Job done!
}