| Index: runtime/bin/socket_win.cc
|
| diff --git a/runtime/bin/socket_win.cc b/runtime/bin/socket_win.cc
|
| index 0f4ecf5bbe643d55d9784ccdc8a92de9d1673e2d..32b690d45cf22e6aa9bba41e063489631b24d508 100644
|
| --- a/runtime/bin/socket_win.cc
|
| +++ b/runtime/bin/socket_win.cc
|
| @@ -97,6 +97,9 @@ SocketAddress* Socket::GetRemotePeer(intptr_t fd, intptr_t* port) {
|
| return NULL;
|
| }
|
| *port = SocketAddress::GetAddrPort(&raw);
|
| + // Clear the port before calling WSAAddressToString as WSAAddressToString
|
| + // includes the port in the formatted string.
|
| + SocketAddress::SetAddrPort(&raw, 0);
|
| return new SocketAddress(&raw.addr);
|
| }
|
|
|
|
|