| Index: net/socket/socks_client_socket.cc
|
| diff --git a/net/socket/socks_client_socket.cc b/net/socket/socks_client_socket.cc
|
| index 4c368c11e70686e361f3b28428fc4c6adc3d54fd..7da0601f211a473ce7c809f49dbf19ab675a826c 100644
|
| --- a/net/socket/socks_client_socket.cc
|
| +++ b/net/socket/socks_client_socket.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/basictypes.h"
|
| #include "base/bind.h"
|
| #include "base/compiler_specific.h"
|
| +#include "base/sys_byteorder.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/base/net_log.h"
|
| #include "net/base/net_util.h"
|
| @@ -297,7 +298,7 @@ const std::string SOCKSClientSocket::BuildHandshakeWriteBuffer() const {
|
| SOCKS4ServerRequest request;
|
| request.version = kSOCKSVersion4;
|
| request.command = kSOCKSStreamRequest;
|
| - request.nw_port = htons(host_request_info_.port());
|
| + request.nw_port = base::HostToNet16(host_request_info_.port());
|
|
|
| const struct addrinfo* ai = addresses_.head();
|
| DCHECK(ai);
|
|
|