Index: net/socket/socks_client_socket.cc |
diff --git a/net/socket/socks_client_socket.cc b/net/socket/socks_client_socket.cc |
index 69805bb6f3a9cbcc778aa7b3443a6b3bbaed7a22..ca64231bbcb5bb757af321cac932b06c174317db 100644 |
--- a/net/socket/socks_client_socket.cc |
+++ b/net/socket/socks_client_socket.cc |
@@ -334,8 +334,9 @@ const std::string SOCKSClientSocket::BuildHandshakeWriteBuffer() const { |
// more robust to try all the IP addresses we have before |
// failing the connect attempt. |
CHECK_EQ(ADDRESS_FAMILY_IPV4, endpoint.GetFamily()); |
- CHECK_LE(endpoint.address().size(), sizeof(request.ip)); |
- memcpy(&request.ip, &endpoint.address()[0], endpoint.address().size()); |
+ CHECK_LE(endpoint.address().bytes().size(), sizeof(request.ip)); |
+ memcpy(&request.ip, &endpoint.address().bytes()[0], |
+ endpoint.address().bytes().size()); |
DVLOG(1) << "Resolved Host is : " << endpoint.ToStringWithoutPort(); |