Chromium Code Reviews| Index: net/socket/ssl_client_socket_mac.cc |
| diff --git a/net/socket/ssl_client_socket_mac.cc b/net/socket/ssl_client_socket_mac.cc |
| index e847c15db5fc206c0bc92b2c370225fa70ce5ecc..f84f3fb6925547a45c6e4d073200f1d81eb8ff12 100644 |
| --- a/net/socket/ssl_client_socket_mac.cc |
| +++ b/net/socket/ssl_client_socket_mac.cc |
| @@ -880,10 +880,10 @@ int SSLClientSocketMac::InitializeSSLContext() { |
| int rv = transport_->socket()->GetPeerAddress(&address); |
| if (rv != OK) |
| return rv; |
| - const struct addrinfo* ai = address.head(); |
| + const IPEndPoint& endpoint = address.front(); |
| std::string peer_id(host_and_port_.ToString()); |
| - peer_id += std::string(reinterpret_cast<char*>(ai->ai_addr), |
| - ai->ai_addrlen); |
| + peer_id += std::string(reinterpret_cast<const char*>(&endpoint.address()[0]), |
|
eroman
2012/05/04 01:08:41
Same comment as earlier, these sorts of translatio
|
| + endpoint.address().size()); |
| // SSLSetPeerID() treats peer_id as a binary blob, and makes its |
| // own copy. |
| status = SSLSetPeerID(ssl_context_, peer_id.data(), peer_id.length()); |