Index: content/browser/renderer_host/p2p/socket_host_udp.cc |
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc |
index a606ebcb0ea8d436fc002a4cd0a5e7d6d22e8847..e03af8e5731adf43f2cf99d344e64219358bf27e 100644 |
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc |
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc |
@@ -97,11 +97,11 @@ void P2PSocketHostUdp::DidCompleteRead(int result) { |
if (result > 0) { |
std::vector<char> data(recv_buffer_->data(), recv_buffer_->data() + result); |
- if (authorized_peers_.find(recv_address_) == authorized_peers_.end()) { |
+ if (connected_peers_.find(recv_address_) == connected_peers_.end()) { |
P2PSocketHost::StunMessageType type; |
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type); |
if (stun && IsRequestOrResponse(type)) { |
- authorized_peers_.insert(recv_address_); |
+ connected_peers_.insert(recv_address_); |
} else if (!stun || type == STUN_DATA_INDICATION) { |
LOG(ERROR) << "Received unexpected data packet from " |
<< recv_address_.ToString() |
@@ -132,7 +132,7 @@ void P2PSocketHostUdp::Send(const net::IPEndPoint& to, |
return; |
} |
- if (authorized_peers_.find(to) == authorized_peers_.end()) { |
+ if (connected_peers_.find(to) == connected_peers_.end()) { |
P2PSocketHost::StunMessageType type; |
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type); |
if (!stun || type == STUN_DATA_INDICATION) { |