aboutsummaryrefslogtreecommitdiff
path: root/src/or/control.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-03-26 10:32:49 -0400
committerNick Mathewson <nickm@torproject.org>2018-03-26 10:32:49 -0400
commitca2d9cbb937e70e3f69e88e4e6a00fc0f818340c (patch)
tree13d1a8f7faecdd91b09659577f7e3bfd1e23ad9d /src/or/control.c
parent33606405e3070de6517690b1494f16c04524ce72 (diff)
parent33a80921a2e7bbf128c27a1a0c4903a9a322708a (diff)
downloadtor-ca2d9cbb937e70e3f69e88e4e6a00fc0f818340c.tar.gz
tor-ca2d9cbb937e70e3f69e88e4e6a00fc0f818340c.zip
Merge branch 'bug24903_029' into maint-0.3.3
Diffstat (limited to 'src/or/control.c')
-rw-r--r--src/or/control.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c
index 6ac2dcb3db..fa62e9dbde 100644
--- a/src/or/control.c
+++ b/src/or/control.c
@@ -3530,6 +3530,9 @@ handle_control_extendcircuit(control_connection_t *conn, uint32_t len,
goto done;
}
circuit_append_new_exit(circ, info);
+ if (circ->build_state->desired_path_len > 1) {
+ circ->build_state->onehop_tunnel = 0;
+ }
extend_info_free(info);
first_node = 0;
});