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 8fae6ff10ef48c38182a4fb222251b3ed525d23b..a606ebcb0ea8d436fc002a4cd0a5e7d6d22e8847 100644 |
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc |
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc |
@@ -100,8 +100,7 @@ void P2PSocketHostUdp::DidCompleteRead(int result) { |
if (authorized_peers_.find(recv_address_) == authorized_peers_.end()) { |
P2PSocketHost::StunMessageType type; |
bool stun = GetStunPacketType(&*data.begin(), data.size(), &type); |
- if (stun && (type == STUN_BINDING_REQUEST || |
- type == STUN_BINDING_RESPONSE)) { |
+ if (stun && IsRequestOrResponse(type)) { |
authorized_peers_.insert(recv_address_); |
} else if (!stun || type == STUN_DATA_INDICATION) { |
LOG(ERROR) << "Received unexpected data packet from " |