aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-04 11:39:28 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-04 11:39:28 -0400
commita7aeb6f58f24e30c329874204a5f0db4b65bb2f0 (patch)
treeca5c21fc3e1b4c643787b9d4088fa11f63c815e8 /src
parent6307a759ed5ce48f31a5c36b08f2563cbb226389 (diff)
parent86ee35ad5b5240b16d3f231f66f744ce7cc3c293 (diff)
downloadtor-a7aeb6f58f24e30c329874204a5f0db4b65bb2f0.tar.gz
tor-a7aeb6f58f24e30c329874204a5f0db4b65bb2f0.zip
Merge remote-tracking branch 'public/bug23275_031' into maint-0.3.1
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c2
-rw-r--r--src/or/networkstatus.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/or/main.c b/src/or/main.c
index cb24fd18c8..7b1f4975f7 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1487,7 +1487,7 @@ run_scheduled_events(time_t now)
/* 12. launch diff computations. (This is free if there are none to
* launch.) */
- if (server_mode(options)) {
+ if (dir_server_mode(options)) {
consdiffmgr_rescan();
}
}
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 25d79139b9..997280de52 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -2014,7 +2014,7 @@ networkstatus_set_current_consensus(const char *consensus,
&c->digests,
c->digest_sha3_as_signed,
c->valid_after);
- if (server_mode(get_options())) {
+ if (dir_server_mode(get_options())) {
consdiffmgr_add_consensus(consensus, c);
}
}