Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: net/quic/quic_address_mismatch.cc

Issue 1565303002: Change IPEndpoint::address() to return a net::IPAddress (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase for ChromeOS Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_address_mismatch.cc
diff --git a/net/quic/quic_address_mismatch.cc b/net/quic/quic_address_mismatch.cc
index 96aaef410309446dab6109961ace5e290014c705..5ab7913eab2cb33278975fb36a0e2c542cdb9402 100644
--- a/net/quic/quic_address_mismatch.cc
+++ b/net/quic/quic_address_mismatch.cc
@@ -14,11 +14,11 @@ int GetAddressMismatch(const IPEndPoint& first_address,
if (first_address.address().empty() || second_address.address().empty()) {
return -1;
}
- IPAddressNumber first_ip_address = first_address.address();
+ IPAddressNumber first_ip_address = first_address.address().bytes();
if (IsIPv4Mapped(first_ip_address)) {
first_ip_address = ConvertIPv4MappedToIPv4(first_ip_address);
}
- IPAddressNumber second_ip_address = second_address.address();
+ IPAddressNumber second_ip_address = second_address.address().bytes();
if (IsIPv4Mapped(second_ip_address)) {
second_ip_address = ConvertIPv4MappedToIPv4(second_ip_address);
}
« no previous file with comments | « net/quic/crypto/quic_crypto_server_config.cc ('k') | net/quic/quic_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698