diff options
author | George Kadianakis <desnacked@riseup.net> | 2018-06-13 13:28:39 +0300 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-20 08:01:02 -0400 |
commit | b7b7dab00d321d2c3e2a2d52e76d9e1190836420 (patch) | |
tree | 9c4aca2936ef8263942f1d8aea2b238145214250 /src/or/hs_common.c | |
parent | a686464420801c5aa58bde1babbf96d3b8520b00 (diff) | |
download | tor-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.c | 3 |
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. */ { |