aboutsummaryrefslogtreecommitdiff
path: root/src/or/circuitbuild.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-09-06 14:39:40 -0400
committerNick Mathewson <nickm@torproject.org>2017-09-22 08:55:53 -0400
commit66aff2d8f35217cc802bd46eeeaf49326d7de4b0 (patch)
treebca747b7248a034b77bcd8cb0384c0d8526d73c0 /src/or/circuitbuild.c
parentab18e5e5fcff7fbdbf0905e6dd2585b7e4a10108 (diff)
downloadtor-66aff2d8f35217cc802bd46eeeaf49326d7de4b0.tar.gz
tor-66aff2d8f35217cc802bd46eeeaf49326d7de4b0.zip
Remove or_circuit_t.is_first_hop; use channel_is_client() instead
The is_first_hop field should have been called used_create_fast, but everywhere that we wanted to check it, we should have been checking channel_is_client() instead.
Diffstat (limited to 'src/or/circuitbuild.c')
-rw-r--r--src/or/circuitbuild.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c
index 65cd7bd5dc..e614c3f287 100644
--- a/src/or/circuitbuild.c
+++ b/src/or/circuitbuild.c
@@ -1611,12 +1611,12 @@ onionskin_answer(or_circuit_t *circ,
memcpy(circ->rend_circ_nonce, rend_circ_nonce, DIGEST_LEN);
- circ->is_first_hop = (created_cell->cell_type == CELL_CREATED_FAST);
+ int used_create_fast = (created_cell->cell_type == CELL_CREATED_FAST);
append_cell_to_circuit_queue(TO_CIRCUIT(circ),
circ->p_chan, &cell, CELL_DIRECTION_IN, 0);
log_debug(LD_CIRC,"Finished sending '%s' cell.",
- circ->is_first_hop ? "created_fast" : "created");
+ used_create_fast ? "created_fast" : "created");
/* Ignore the local bit when ExtendAllowPrivateAddresses is set:
* it violates the assumption that private addresses are local.