]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix for circpad_add_matching_machines to be able to negotiate one machine per index...
authorpulls <tobias.pulls@kau.se>
Mon, 8 Jul 2019 14:15:41 +0000 (16:15 +0200)
committerpulls <tobias.pulls@kau.se>
Mon, 8 Jul 2019 14:15:41 +0000 (16:15 +0200)
src/core/or/circuitpadding.c

index 0214cc4219119b08ec2769de212ff9f48b0c0ceb..677ebd2d68583fc9a13b58a64b80fbe704d738b2 100644 (file)
@@ -2084,8 +2084,8 @@ circpad_add_matching_machines(origin_circuit_t *on_circ,
           circ->padding_machine[i] = NULL;
           on_circ->padding_negotiation_failed = 1;
         } else {
-          /* Success. Don't try any more machines */
-          return;
+          /* Success. Don't try any more machines on this index */
+          break;
         }
       }
     } SMARTLIST_FOREACH_END(machine);