fix DHT error messages to either not be sent or contain valid transaction IDs

This commit is contained in:
Arvid Norberg 2011-06-01 07:44:33 +00:00
parent 05e91f1a6d
commit 8190744f0c
1 changed files with 5 additions and 3 deletions

View File

@ -527,9 +527,11 @@ namespace libtorrent { namespace dht
TORRENT_LOG(dht_tracker) << "<== " << ep << " ERROR: not a dictionary: "
<< print_entry(e, true);
#endif
entry r;
libtorrent::dht::incoming_error(r, "message is not a dictionary");
send_packet(r, ep, 0);
// it's not a good idea to send invalid messages
// especially not in response to an invalid message
// entry r;
// libtorrent::dht::incoming_error(r, "message is not a dictionary");
// send_packet(r, ep, 0);
return;
}