diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-09-22 08:58:17 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-09-22 08:58:17 -0400 |
commit | 91467e04b18afce9af2189116ad0e160fef53e49 (patch) | |
tree | 4ddc095a95cecec1b431899841b73e2b5a388bf7 /src/or/command.c | |
parent | 512c57cff97c0533bbb56e6c41a1e3dca5fd9064 (diff) | |
parent | 95a7e7e9254bc70db9e1d967d0db3deb658a2be3 (diff) | |
download | tor-91467e04b18afce9af2189116ad0e160fef53e49.tar.gz tor-91467e04b18afce9af2189116ad0e160fef53e49.zip |
Merge branch 'bug22805_v2_squashed'
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/or/command.c b/src/or/command.c index 56134659c5..ae419ad068 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -331,7 +331,7 @@ command_process_create_cell(cell_t *cell, channel_t *chan) // Needed for chutney: Sometimes relays aren't in the consensus yet, and // get marked as clients. This resets their channels once they appear. // Probably useful for normal operation wrt relay flapping, too. - chan->is_client = 0; + channel_clear_client(chan); } else { channel_mark_client(chan); } @@ -353,16 +353,6 @@ command_process_create_cell(cell_t *cell, channel_t *chan) int len; created_cell_t created_cell; - /* If the client used CREATE_FAST, it's probably a tor client or bridge - * relay, and we must not use it for EXTEND requests (in most cases, we - * won't have an authenticated peer ID for the extend). - * Public relays on 0.2.9 and later will use CREATE_FAST if they have no - * ntor onion key for this relay, but that should be a rare occurrence. - * Clients on 0.3.1 and later avoid using CREATE_FAST as much as they can, - * even during bootstrap, so the CREATE_FAST check is most accurate for - * earlier tor client versions. */ - channel_mark_client(chan); - memset(&created_cell, 0, sizeof(created_cell)); len = onion_skin_server_handshake(ONION_HANDSHAKE_TYPE_FAST, create_cell->onionskin, |