From 8190744f0c64eb7e9c93a7c19feaa0e366511961 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 1 Jun 2011 07:44:33 +0000 Subject: [PATCH] fix DHT error messages to either not be sent or contain valid transaction IDs --- src/kademlia/dht_tracker.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/kademlia/dht_tracker.cpp b/src/kademlia/dht_tracker.cpp index 122c85c86..493492975 100644 --- a/src/kademlia/dht_tracker.cpp +++ b/src/kademlia/dht_tracker.cpp @@ -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; }