diff options
author | Nick Mathewson <nickm@torproject.org> | 2021-11-15 08:55:47 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2021-11-15 08:55:47 -0500 |
commit | dd085d42f96e39f9387aa1d7a306100c0d7df305 (patch) | |
tree | 01d83804e8c071e9d347060317ada34a573f69b3 /src/feature/control | |
parent | 882fd1f0d45656e0535e70b5e115281b39ac6307 (diff) | |
download | tor-dd085d42f96e39f9387aa1d7a306100c0d7df305.tar.gz tor-dd085d42f96e39f9387aa1d7a306100c0d7df305.zip |
Do not count controller-selected paths towards path bias.
As a side effect, this fixes a "Bug" warning.
Closes #40515. Bugfix on 0.2.4.10-alpha.
Diffstat (limited to 'src/feature/control')
-rw-r--r-- | src/feature/control/control_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/control/control_cmd.c b/src/feature/control/control_cmd.c index b4d7228b51..a1c5e55fe1 100644 --- a/src/feature/control/control_cmd.c +++ b/src/feature/control/control_cmd.c @@ -822,6 +822,8 @@ handle_control_extendcircuit(control_connection_t *conn, circ->first_hop_from_controller = 1; } + circ->any_hop_from_controller = 1; + /* now circ refers to something that is ready to be extended */ first_node = zero_circ; SMARTLIST_FOREACH(nodes, const node_t *, node, |