Skip to content
Snippets Groups Projects
Commit 2755b09c authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

Don't cannibalize already cannibalized circuits

This ensures we don't build circuits that have 5 hops or more. Patch
contributed by wanoskarnet, thanks!
parent f7e87f41
No related branches found
No related tags found
No related merge requests found
o Minor bugfixes:
- Ensure we don't cannibalize circuits that are longer than three hops
already, so we don't end up making circuits with 5 or more hops. Patch
contributed by wanoskarnet. Fixes bug 5231; bugfix on 0.1.0.1-rc which
introduced cannibalization.
......@@ -1086,6 +1086,7 @@ circuit_find_to_cannibalize(uint8_t purpose, extend_info_t *info,
(!need_capacity || circ->build_state->need_capacity) &&
(internal == circ->build_state->is_internal) &&
circ->remaining_relay_early_cells &&
circ->build_state->desired_path_len == DEFAULT_ROUTE_LEN &&
!circ->build_state->onehop_tunnel &&
!circ->isolation_values_set) {
if (info) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment