mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
r16124@catbus: nickm | 2007-10-24 22:11:09 -0400
We want to extend the valid_until for "reasonably live", not the valid_after time svn:r12169
This commit is contained in:
parent
93331ebf69
commit
beb73c90ab
@ -1128,8 +1128,8 @@ networkstatus_get_reasonably_live_consensus(time_t now)
|
||||
{
|
||||
#define REASONABLY_LIVE_TIME (24*60*60)
|
||||
if (current_consensus &&
|
||||
current_consensus->valid_after <= now+REASONABLY_LIVE_TIME &&
|
||||
now <= current_consensus->valid_until)
|
||||
current_consensus->valid_after <= now &&
|
||||
now <= current_consensus->valid_until+REASONABLY_LIVE_TIME)
|
||||
return current_consensus;
|
||||
else
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user