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

Unified Diff: net/base/address_list.h

Issue 3353003: Fixed crash involving using NetAddress::Adopt() incorrectly (Closed)
Patch Set: Created 10 years, 4 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 | « jingle/notifier/base/chrome_async_socket.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.h
diff --git a/net/base/address_list.h b/net/base/address_list.h
index 1ca86a144c54c4e8d141af7643756470ae1acfc8..c333f863fc5b8006e58108c1ba5630d02959d808 100644
--- a/net/base/address_list.h
+++ b/net/base/address_list.h
@@ -27,9 +27,10 @@ class AddressList {
// canonicalized IP address.
AddressList(const IPAddressNumber& address, int port, bool canonicalize_name);
- // Adopt the given addrinfo list in place of the existing one if any. This
- // hands over responsibility for freeing the addrinfo list to the AddressList
- // object.
+ // Adopt the given addrinfo list (assumed to have been created by
+ // the system, e.g. returned by getaddrinfo()) in place of the
+ // existing one if any. This hands over responsibility for freeing
+ // the addrinfo list to the AddressList object.
void Adopt(struct addrinfo* head);
// Copies the given addrinfo rather than adopting it. If |recursive| is true,
« no previous file with comments | « jingle/notifier/base/chrome_async_socket.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698