aboutsummaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 332e7b0ad2..e3899b75fa 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -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;