mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
fixed race conditin
This commit is contained in:
parent
d41f930f69
commit
5487fad2ce
@ -365,6 +365,7 @@ namespace data
|
|||||||
|
|
||||||
void IdentityEx::DropVerifier () const
|
void IdentityEx::DropVerifier () const
|
||||||
{
|
{
|
||||||
|
// TODO: potential race condition with Verify
|
||||||
m_Verifier = nullptr;
|
m_Verifier = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,7 +65,6 @@ namespace data
|
|||||||
LogPrint (eLogError, "RouterInfo: signature verification failed");
|
LogPrint (eLogError, "RouterInfo: signature verification failed");
|
||||||
m_IsUnreachable = true;
|
m_IsUnreachable = true;
|
||||||
}
|
}
|
||||||
m_RouterIdentity->DropVerifier ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void RouterInfo::SetRouterIdentity (std::shared_ptr<const IdentityEx> identity)
|
void RouterInfo::SetRouterIdentity (std::shared_ptr<const IdentityEx> identity)
|
||||||
|
Loading…
Reference in New Issue
Block a user