Browse Source

check if address not found

pull/754/head
orignal 8 years ago
parent
commit
59dd479a6d
  1. 6
      AddressBook.cpp

6
AddressBook.cpp

@ -636,7 +636,11 @@ namespace client
if (address.length () > 0) if (address.length () > 0)
{ {
// TODO: verify from // TODO: verify from
m_Addresses[address] = buf + 8; i2p::data::IdentHash hash(buf + 8);
if (!hash.IsZero ())
m_Addresses[address] = hash;
else
LogPrint (eLogInfo, "AddressBook: Lookup response: ", address, " not found");
} }
} }

Loading…
Cancel
Save