]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Ensure relays don't make multiple connections during bootstrap
authorteor <teor2345@gmail.com>
Mon, 7 Nov 2016 11:58:36 +0000 (22:58 +1100)
committerteor <teor2345@gmail.com>
Mon, 7 Nov 2016 12:05:55 +0000 (23:05 +1100)
Relays do not deliberately launch multiple attempts, so the impact of this
bug should be minimal. This fix also defends against bugs like #20499.

Bugfix on 0.2.8.1-alpha.

changes/bug20591 [new file with mode: 0644]
src/or/networkstatus.c

diff --git a/changes/bug20591 b/changes/bug20591
new file mode 100644 (file)
index 0000000..deaa738
--- /dev/null
@@ -0,0 +1,3 @@
+  o Minor bugfixes (relay bootstrap):
+    - Ensure relays don't make multiple connections during bootstrap.
+      Fixes bug 20591; bugfix on 0.2.8.1-alpha.
index 49baeb83b7807f0e425fa6d6295be3102bb03fc1..a6656f559641c30dd56365b3ae1c957fcf31615b 100644 (file)
@@ -880,7 +880,7 @@ update_consensus_networkstatus_downloads(time_t now)
     resource = networkstatus_get_flavor_name(i);
 
     /* Check if we already have enough connections in progress */
-    if (we_are_bootstrapping) {
+    if (we_are_bootstrapping && use_multi_conn) {
       max_in_progress_conns =
         options->ClientBootstrapConsensusMaxInProgressTries;
     }