forked from premiere/premiere-libtorrent
fix DHT error messages to either not be sent or contain valid transaction IDs
This commit is contained in:
parent
05e91f1a6d
commit
8190744f0c
|
@ -527,9 +527,11 @@ namespace libtorrent { namespace dht
|
||||||
TORRENT_LOG(dht_tracker) << "<== " << ep << " ERROR: not a dictionary: "
|
TORRENT_LOG(dht_tracker) << "<== " << ep << " ERROR: not a dictionary: "
|
||||||
<< print_entry(e, true);
|
<< print_entry(e, true);
|
||||||
#endif
|
#endif
|
||||||
entry r;
|
// it's not a good idea to send invalid messages
|
||||||
libtorrent::dht::incoming_error(r, "message is not a dictionary");
|
// especially not in response to an invalid message
|
||||||
send_packet(r, ep, 0);
|
// entry r;
|
||||||
|
// libtorrent::dht::incoming_error(r, "message is not a dictionary");
|
||||||
|
// send_packet(r, ep, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue