when we get an invalid introset in response call handler if exists with empty result instead of timing out

pull/16/head
Jeff Becker 6 years ago
parent 86807d2631
commit a91f54cc8a
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -279,7 +279,22 @@ namespace llarp
{
IntroSetPublishFail();
}
return false;
else
{
auto itr = m_PendingLookups.find(msg->T);
if(itr == m_PendingLookups.end())
{
llarp::LogWarn(
"invalid lookup response for hidden service endpoint ",
Name(), " txid=", msg->T);
return true;
}
std::unique_ptr< IServiceLookup > lookup = std::move(itr->second);
m_PendingLookups.erase(itr);
lookup->HandleResponse({});
return true;
}
return true;
}
if(m_Identity.pub == introset.A && m_CurrentPublishTX == msg->T)
{

Loading…
Cancel
Save