diff options
Diffstat (limited to 'net/base/address_list.cc')
-rw-r--r-- | net/base/address_list.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/base/address_list.cc b/net/base/address_list.cc index 4281a7e..f365fb6 100644 --- a/net/base/address_list.cc +++ b/net/base/address_list.cc @@ -35,8 +35,7 @@ namespace net { void AddressList::Adopt(struct addrinfo* head) { - data_ = new Data(); - data_->head = head; + data_ = new Data(head); } AddressList::Data::~Data() { |