mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-08-28 00:44:42 +00:00
fixed possible overflow
This commit is contained in:
@@ -1508,7 +1508,7 @@ namespace stream
|
||||
ResetWindowSize ();
|
||||
}
|
||||
auto currentRemoteLease = m_CurrentRemoteLease;
|
||||
if (!m_IsRemoteLeaseChangeInProgress && m_RemoteLeaseSet && m_CurrentRemoteLease && ts >= m_CurrentRemoteLease->endDate - i2p::data::LEASE_ENDDATE_THRESHOLD)
|
||||
if (!m_IsRemoteLeaseChangeInProgress && m_RemoteLeaseSet && m_CurrentRemoteLease && ts + i2p::data::LEASE_ENDDATE_THRESHOLD >= m_CurrentRemoteLease->endDate)
|
||||
{
|
||||
auto leases = m_RemoteLeaseSet->GetNonExpiredLeases (false);
|
||||
if (leases.size ())
|
||||
|
||||
Reference in New Issue
Block a user