| 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..3573d9bc143f40ed277ee4cf2d9e31563c98fab2 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_number().size(), sizeof(request.ip));
|
| + memcpy(&request.ip, &endpoint.address_number()[0],
|
| + endpoint.address_number().size());
|
|
|
| DVLOG(1) << "Resolved Host is : " << endpoint.ToStringWithoutPort();
|
|
|
|
|