Index: remoting/protocol/ssl_hmac_channel_authenticator.cc |
diff --git a/remoting/protocol/ssl_hmac_channel_authenticator.cc b/remoting/protocol/ssl_hmac_channel_authenticator.cc |
index 32fd6c3d2eaf1f3b0c91173c6afc83db52d8d28f..dd57d5163d2befbe1afe4494eba4dc5d29587467 100644 |
--- a/remoting/protocol/ssl_hmac_channel_authenticator.cc |
+++ b/remoting/protocol/ssl_hmac_channel_authenticator.cc |
@@ -16,6 +16,7 @@ |
#include "crypto/secure_util.h" |
#include "net/base/host_port_pair.h" |
#include "net/base/io_buffer.h" |
+#include "net/base/ip_address.h" |
#include "net/base/net_errors.h" |
#include "net/cert/cert_status_flags.h" |
#include "net/cert/cert_verifier.h" |
@@ -99,8 +100,7 @@ class NetStreamSocketAdapter : public net::StreamSocket { |
bool IsConnectedAndIdle() const override { return true; } |
int GetPeerAddress(net::IPEndPoint* address) const override { |
// SSL sockets call this function so it must return some result. |
- net::IPAddressNumber ip_address(net::kIPv4AddressSize); |
- *address = net::IPEndPoint(ip_address, 0); |
+ *address = net::IPEndPoint(net::IPAddress::IPv4AllZeros(), 0); |
return net::OK; |
} |
int GetLocalAddress(net::IPEndPoint* address) const override { |