From: pulls Date: Mon, 8 Jul 2019 14:15:41 +0000 (+0200) Subject: fix for circpad_add_matching_machines to be able to negotiate one machine per index... X-Git-Tag: tor-0.4.3.1-alpha~291^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2521873a61ed91e09b48b97713f11ae9c4b4bb5;p=thirdparty%2Ftor.git fix for circpad_add_matching_machines to be able to negotiate one machine per index, not only one machine in total --- diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c index 0214cc4219..677ebd2d68 100644 --- a/src/core/or/circuitpadding.c +++ b/src/core/or/circuitpadding.c @@ -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);