commit c2521873a61ed91e09b48b97713f11ae9c4b4bb5
parent 5e1660100027e742c39c073c84add64e093f7745
Author: pulls <tobias.pulls@kau.se>
Date: Mon, 8 Jul 2019 16:15:41 +0200
fix for circpad_add_matching_machines to be able to negotiate one machine per index, not only one machine in total
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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);