aboutsummaryrefslogtreecommitdiff
path: root/src/feature/relay/circuitbuild_relay.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2020-07-01 14:42:55 -0400
committerNick Mathewson <nickm@torproject.org>2020-07-02 09:51:04 -0400
commit1e97f968882f12edad20874ada99c2bd8542119d (patch)
tree31ee477578e6e7ac83cf6f8df5507bb639589fb9 /src/feature/relay/circuitbuild_relay.c
parent6a0b9e47462d7c0bcb4598343cc7d6e7689216d7 (diff)
downloadtor-1e97f968882f12edad20874ada99c2bd8542119d.tar.gz
tor-1e97f968882f12edad20874ada99c2bd8542119d.zip
Refactor channel_connect_for_circuit() to take an extend_info_t.
Diffstat (limited to 'src/feature/relay/circuitbuild_relay.c')
-rw-r--r--src/feature/relay/circuitbuild_relay.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/feature/relay/circuitbuild_relay.c b/src/feature/relay/circuitbuild_relay.c
index 36e64d9b33..881cbd51be 100644
--- a/src/feature/relay/circuitbuild_relay.c
+++ b/src/feature/relay/circuitbuild_relay.c
@@ -401,11 +401,7 @@ circuit_open_connection_for_extend(const struct extend_cell_t *ec,
if (should_launch) {
/* we should try to open a connection */
- channel_t *n_chan = channel_connect_for_circuit(
- &circ->n_hop->addr,
- circ->n_hop->port,
- circ->n_hop->identity_digest,
- &circ->n_hop->ed_identity);
+ channel_t *n_chan = channel_connect_for_circuit(circ->n_hop);
if (!n_chan) {
log_info(LD_CIRC,"Launching n_chan failed. Closing circuit.");
circuit_mark_for_close(circ, END_CIRC_REASON_CONNECTFAILED);