[tor-commits] [tor/master] fix for circpad_add_matching_machines to be able to negotiate one machine per index, not only one machine in total

teor at torproject.org teor at torproject.org
Mon Oct 21 03:28:26 UTC 2019


commit c2521873a61ed91e09b48b97713f11ae9c4b4bb5
Author: pulls <tobias.pulls at kau.se>
Date:   Mon Jul 8 16:15:41 2019 +0200

    fix for circpad_add_matching_machines to be able to negotiate one machine per index, not only one machine in total
---
 src/core/or/circuitpadding.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/core/or/circuitpadding.c b/src/core/or/circuitpadding.c
index 0214cc421..677ebd2d6 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);





More information about the tor-commits mailing list