fix assert in DHT node

This commit is contained in:
arvidn 2019-04-30 09:11:00 +02:00 committed by Arvid Norberg
parent b61b34a86a
commit 7d1afa9b41
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ void node::incoming(aux::listen_socket_handle const& s, msg const& m)
{ {
// is this a reply? // is this a reply?
bdecode_node const y_ent = m.message.dict_find_string("y"); bdecode_node const y_ent = m.message.dict_find_string("y");
if (!y_ent || y_ent.string_length() == 0) if (!y_ent || y_ent.string_length() != 1)
{ {
// don't respond to this obviously broken messages. We don't // don't respond to this obviously broken messages. We don't
// want to open up a magnification opportunity // want to open up a magnification opportunity