remove a DHT observer right away when the response has an invalid node ID

This commit is contained in:
Arvid Norberg 2014-01-17 05:16:37 +00:00
parent b621f3f00a
commit 4a7543bdb8
1 changed files with 1 additions and 0 deletions

View File

@ -356,6 +356,7 @@ bool rpc_manager::incoming(msg const& m, node_id* id, libtorrent::dht_settings c
node_id nid = node_id(node_id_ent->string_ptr());
if (settings.enforce_node_id && !verify_id(nid, m.addr.address()))
{
o->timeout();
entry e;
incoming_error(e, "invalid node ID");
m_sock->send_packet(e, m.addr, 0);