aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2016-04-14 03:03:47 -0400
committerRoger Dingledine <arma@torproject.org>2016-05-09 14:42:32 -0400
commit1f72653544272e24d685bd81abe2da5d32b67caf (patch)
tree1dfdb6cb88a783e2037a95630bee51a676c1b47f
parentd5a96286c2877ab56455ea5183d1df2e39453cde (diff)
downloadtor-1f72653544272e24d685bd81abe2da5d32b67caf.tar.gz
tor-1f72653544272e24d685bd81abe2da5d32b67caf.zip
fix a bug where relays would use the aggressive client bootstrapping retry number
-rw-r--r--src/or/networkstatus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index 6b4085299c..3d8bb55fc3 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -871,8 +871,7 @@ update_consensus_networkstatus_downloads(time_t now)
update_consensus_bootstrap_multiple_downloads(now, options);
} else {
/* Check if we failed downloading a consensus too recently */
- int max_dl_tries = consensus_max_download_tries(options,
- we_are_bootstrapping);
+ int max_dl_tries = consensus_max_download_tries(options, 0);
/* Let's make sure we remembered to update consensus_dl_status */
tor_assert(consensus_dl_status[i].schedule == DL_SCHED_CONSENSUS);