summaryrefslogtreecommitdiffstats
path: root/net/base/address_list.h
diff options
context:
space:
mode:
authorakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 00:01:47 +0000
committerakalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-02 00:01:47 +0000
commitaa82299b37136a5de8a842d35eb893be6eb995f8 (patch)
tree9dc102beb7931c0778f413a59bb0811cf5fef43c /net/base/address_list.h
parent13cbec67339b2a7577f193a5c64e8a7d53ca2c9b (diff)
downloadchromium_src-aa82299b37136a5de8a842d35eb893be6eb995f8.zip
chromium_src-aa82299b37136a5de8a842d35eb893be6eb995f8.tar.gz
chromium_src-aa82299b37136a5de8a842d35eb893be6eb995f8.tar.bz2
Fixed crash involving using NetAddress::Adopt() incorrectly
Replaced use of NetAddress::Adopt() in ChromeAsyncSocket with the single-IP constructor. Clarified comment for NetAddress::Adopt(). BUG=54108 TEST=Windows sync integration tests Review URL: http://codereview.chromium.org/3353003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/address_list.h')
-rw-r--r--net/base/address_list.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/net/base/address_list.h b/net/base/address_list.h
index 1ca86a1..c333f86 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,