From 59dd479a6d3460fea9042e244c4348f4399a93e4 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 26 Dec 2016 17:19:54 -0500 Subject: [PATCH] check if address not found --- AddressBook.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AddressBook.cpp b/AddressBook.cpp index 685acbc2..4dad5614 100644 --- a/AddressBook.cpp +++ b/AddressBook.cpp @@ -636,7 +636,11 @@ namespace client if (address.length () > 0) { // 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"); } }