fix double free

pull/23/head v0.2.3-rc1
Jeff Becker 6 years ago
parent 475ac63f4a
commit a7f8da4cbc
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -848,8 +848,9 @@ namespace llarp
auto itr = m_PendingServiceLookups.find(addr);
if(itr != m_PendingServiceLookups.end())
{
auto func = itr->second;
m_PendingServiceLookups.erase(itr);
itr->second(addr, nullptr);
func(addr, nullptr);
}
return false;
}
@ -1418,7 +1419,7 @@ namespace llarp
{
// shift intro if it expires "soon"
ShiftIntroduction();
if(remoteIntro != m_NextIntro)
{
if(GetPathByRouter(m_NextIntro.router) != nullptr)

Loading…
Cancel
Save