diff options
author | teor <teor2345@gmail.com> | 2017-12-08 12:49:33 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2017-12-08 12:49:33 +1100 |
commit | bb7c5b431d12808c8cfda0cf9029bc1c0b2d12c6 (patch) | |
tree | bde48112841c1f3d8756bebfec1984ad30a11a2a /src/or/connection_edge.c | |
parent | afceb431ed3a1c4daf303e5245a05f800d596fa6 (diff) | |
download | tor-bb7c5b431d12808c8cfda0cf9029bc1c0b2d12c6.tar.gz tor-bb7c5b431d12808c8cfda0cf9029bc1c0b2d12c6.zip |
Move a comment to relay_send_end_cell_from_edge()
It looks like it was left behind in a refactor.
Fixes 24559.
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 41f0fe6a1d..113568bb71 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -339,6 +339,10 @@ relay_send_end_cell_from_edge(streamid_t stream_id, circuit_t *circ, payload[0] = (char) reason; + /* Note: we have to use relay_send_command_from_edge here, not + * connection_edge_end or connection_edge_send_command, since those require + * that we have a stream connected to a circuit, and we don't connect to a + * circuit until we have a pending/successful resolve. */ return relay_send_command_from_edge(stream_id, circ, RELAY_COMMAND_END, payload, 1, cpath_layer); } @@ -3405,11 +3409,6 @@ connection_exit_begin_conn(cell_t *cell, circuit_t *circ) if (rh.length > RELAY_PAYLOAD_SIZE) return -END_CIRC_REASON_TORPROTOCOL; - /* Note: we have to use relay_send_command_from_edge here, not - * connection_edge_end or connection_edge_send_command, since those require - * that we have a stream connected to a circuit, and we don't connect to a - * circuit until we have a pending/successful resolve. */ - if (!server_mode(options) && circ->purpose != CIRCUIT_PURPOSE_S_REND_JOINED) { log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL, |