fix: missing checks and limits

This commit is contained in:
jpk68
2026-09-16 08:47:15 -04:00
parent 8c833634ca
commit 5e93f74e19
9 changed files with 46 additions and 8 deletions
+1
View File
@@ -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)