Index: runtime/bin/socket.cc |
diff --git a/runtime/bin/socket.cc b/runtime/bin/socket.cc |
index 17f56417ccb4d517a4195b98a51577f20a219a87..b0e384c8b18487f67f2b0664b0f63c785e6d1306 100644 |
--- a/runtime/bin/socket.cc |
+++ b/runtime/bin/socket.cc |
@@ -551,7 +551,7 @@ void FUNCTION_NAME(Socket_GetRemotePeer)(Dart_NativeArguments args) { |
Dart_ListSetAt(entry, 1, Dart_NewStringFromCString(addr->as_string())); |
RawAddr raw = addr->addr(); |
- intptr_t data_length = SocketAddress::GetAddrLength(raw); |
+ intptr_t data_length = SocketAddress::GetInAddrLength(raw); |
Dart_Handle data = Dart_NewTypedData(Dart_TypedData_kUint8, data_length); |
Dart_ListSetAsBytes(data, 0, reinterpret_cast<uint8_t*>(&raw), data_length); |
Dart_ListSetAt(entry, 2, data); |