aboutsummaryrefslogtreecommitdiff
path: root/src/feature/nodelist/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-14 09:14:12 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-14 09:14:12 -0400
commitb67f3b751a277fb940b155c0bc64f594db5549b0 (patch)
treeab895243cf3b82492ecf8b9d11d127a55436c77b /src/feature/nodelist/networkstatus.c
parent88c9730817640fb5538d9c136286ecd09914eea7 (diff)
parent33a0c619a8f44cacb400eccc4ab6192d330465c6 (diff)
downloadtor-b67f3b751a277fb940b155c0bc64f594db5549b0.tar.gz
tor-b67f3b751a277fb940b155c0bc64f594db5549b0.zip
Merge branch 'ticket27247'
Diffstat (limited to 'src/feature/nodelist/networkstatus.c')
-rw-r--r--src/feature/nodelist/networkstatus.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/feature/nodelist/networkstatus.c b/src/feature/nodelist/networkstatus.c
index 6e386628d7..81da9756aa 100644
--- a/src/feature/nodelist/networkstatus.c
+++ b/src/feature/nodelist/networkstatus.c
@@ -2098,12 +2098,13 @@ networkstatus_set_current_consensus(const char *consensus,
}
if (we_want_to_fetch_flavor(options, flav)) {
- dirserv_set_cached_consensus_networkstatus(consensus,
- flavor,
- &c->digests,
- c->digest_sha3_as_signed,
- c->valid_after);
if (dir_server_mode(get_options())) {
+ dirserv_set_cached_consensus_networkstatus(consensus,
+ flavor,
+ &c->digests,
+ c->digest_sha3_as_signed,
+ c->valid_after);
+
consdiffmgr_add_consensus(consensus, c);
}
}