summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/socket/client_socket_pool_base.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/socket/client_socket_pool_base.cc b/net/socket/client_socket_pool_base.cc
index 56eb1ab..2a32e4d 100644
--- a/net/socket/client_socket_pool_base.cc
+++ b/net/socket/client_socket_pool_base.cc
@@ -303,7 +303,7 @@ void ClientSocketPoolBase::OnConnectJobComplete(int result, ConnectJob* job) {
request_map->erase(it);
DCHECK_EQ(handle, job->key_handle());
- ClientSocket* const socket = job->ReleaseSocket();
+ scoped_ptr<ClientSocket> socket(job->ReleaseSocket());
RemoveConnectJob(job->key_handle());
if (result != OK) {
@@ -312,7 +312,7 @@ void ClientSocketPoolBase::OnConnectJobComplete(int result, ConnectJob* job) {
// |group_map_| again.
MaybeOnAvailableSocketSlot(group_name);
} else {
- HandOutSocket(socket, false /* not reused */, handle, &group);
+ HandOutSocket(socket.release(), false /* not reused */, handle, &group);
callback->Run(result);
}
}