From 1e97f968882f12edad20874ada99c2bd8542119d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 1 Jul 2020 14:42:55 -0400 Subject: Refactor channel_connect_for_circuit() to take an extend_info_t. --- src/feature/relay/circuitbuild_relay.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/feature/relay/circuitbuild_relay.c') 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); -- cgit v1.2.3-54-g00ecf