| Index: net/socket/socks5_client_socket.cc
|
| diff --git a/net/socket/socks5_client_socket.cc b/net/socket/socks5_client_socket.cc
|
| index b8b3439169b6b1c364b970dff2d9df21d6c566aa..f9932a902907c295b7c16cdc9730b04222d40633 100644
|
| --- a/net/socket/socks5_client_socket.cc
|
| +++ b/net/socket/socks5_client_socket.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/debug/trace_event.h"
|
| #include "base/format_macros.h"
|
| #include "base/string_util.h"
|
| +#include "base/sys_byteorder.h"
|
| #include "net/base/io_buffer.h"
|
| #include "net/base/net_log.h"
|
| #include "net/base/net_util.h"
|
| @@ -364,7 +365,7 @@ int SOCKS5ClientSocket::BuildHandshakeWriteBuffer(std::string* handshake)
|
| host_request_info_.hostname().size()));
|
| handshake->append(host_request_info_.hostname());
|
|
|
| - uint16 nw_port = htons(host_request_info_.port());
|
| + uint16 nw_port = base::HostToNet16(host_request_info_.port());
|
| handshake->append(reinterpret_cast<char*>(&nw_port), sizeof(nw_port));
|
| return OK;
|
| }
|
|
|