tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 133e1e870bd59e3a89d5a7712983d3f9bf35f7c3
parent 77bb85ba873425b6c7b48d4c93bde1f434a37314
Author: Nick Mathewson <nickm@torproject.org>
Date:   Fri, 11 Aug 2017 09:39:57 -0400

Merge remote-tracking branch 'dgoulet/bug23091_032_01'

Diffstat:
Achanges/bug23091 | 6++++++
Msrc/or/main.c | 2+-
2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/changes/bug23091 b/changes/bug23091 @@ -0,0 +1,6 @@ + o Minor bugfixes (consensus expiry): + - Tor would reconsider updating its directory information every 2 minutes + instead of only doing it for a consensus that is more than 24 hours old + (badly expired). This specific check is done in the tor main loop + callback that validates if we have an expired consensus. Fixes bug + 23091; bugfix on tor-0.2.0.19-alpha. diff --git a/src/or/main.c b/src/or/main.c @@ -1709,7 +1709,7 @@ check_expired_networkstatus_callback(time_t now, const or_options_t *options) * networkstatus_get_reasonably_live_consensus(), but that value is way * way too high. Arma: is the bridge issue there resolved yet? -NM */ #define NS_EXPIRY_SLOP (24*60*60) - if (ns && ns->valid_until < now+NS_EXPIRY_SLOP && + if (ns && ns->valid_until < (now - NS_EXPIRY_SLOP) && router_have_minimum_dir_info()) { router_dir_info_changed(); }