aboutsummaryrefslogtreecommitdiff
path: root/src/or/hs_common.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2018-06-13 13:28:39 +0300
committerNick Mathewson <nickm@torproject.org>2018-06-20 08:01:02 -0400
commitb7b7dab00d321d2c3e2a2d52e76d9e1190836420 (patch)
tree9c4aca2936ef8263942f1d8aea2b238145214250 /src/or/hs_common.c
parenta686464420801c5aa58bde1babbf96d3b8520b00 (diff)
downloadtor-b7b7dab00d321d2c3e2a2d52e76d9e1190836420.tar.gz
tor-b7b7dab00d321d2c3e2a2d52e76d9e1190836420.zip
Recreate nodelist before use if it's outdated.
We currently only do the check when we are about to use the HSDir indices.
Diffstat (limited to 'src/or/hs_common.c')
-rw-r--r--src/or/hs_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/hs_common.c b/src/or/hs_common.c
index 6f51e1d131..5354055bb0 100644
--- a/src/or/hs_common.c
+++ b/src/or/hs_common.c
@@ -1340,6 +1340,9 @@ hs_get_responsible_hsdirs(const ed25519_public_key_t *blinded_pk,
goto done;
}
+ /* Ensure the nodelist is fresh, since it contains the HSDir indices. */
+ nodelist_ensure_freshness(c);
+
/* Add every node_t that support HSDir v3 for which we do have a valid
* hsdir_index already computed for them for this consensus. */
{