]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix a bug where relays would use the aggressive client bootstrapping retry number
authorRoger Dingledine <arma@torproject.org>
Thu, 14 Apr 2016 07:03:47 +0000 (03:03 -0400)
committerRoger Dingledine <arma@torproject.org>
Mon, 9 May 2016 18:42:32 +0000 (14:42 -0400)
src/or/networkstatus.c

index 6b4085299c24dd2f0e6ff80ac131b426824d6256..3d8bb55fc3773e0b0454420b91e3bd20e6de29b4 100644 (file)
@@ -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);