mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-06 01:18:17 +00:00
fix: missing checks and limits
This commit is contained in:
@@ -1419,6 +1419,7 @@ namespace data
|
||||
void NetDb::ManageLeaseSets ()
|
||||
{
|
||||
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
||||
std::lock_guard<std::mutex> lock(m_LeaseSetsMutex);
|
||||
for (auto it = m_LeaseSets.begin (); it != m_LeaseSets.end ();)
|
||||
{
|
||||
if (!it->second->IsValid () || ts > it->second->GetExpirationTime () - LEASE_ENDDATE_THRESHOLD)
|
||||
|
||||
Reference in New Issue
Block a user