1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-22 08:14:15 +00:00

check if address not found

This commit is contained in:
orignal 2016-12-26 17:19:54 -05:00
parent cee9f1df95
commit 59dd479a6d

View File

@ -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");
} }
} }