summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-02-16 08:47:41 -0500
committerNick Mathewson <nickm@torproject.org>2018-02-16 08:47:41 -0500
commit7e4623a2353541cfdcad02bc2b9cb05bcc7a7c81 (patch)
treeacb67c8091487bd53a88b12ccc0c1b420ce1b35c
parentf0f22ad92c2a8d20d85f1689197f901dfdee3688 (diff)
parent3930ffdf63425c344e14c45cff6780108cfa038b (diff)
downloadtor-7e4623a2353541cfdcad02bc2b9cb05bcc7a7c81.tar.gz
tor-7e4623a2353541cfdcad02bc2b9cb05bcc7a7c81.zip
Merge branch 'maint-0.3.1' into release-0.3.1
-rw-r--r--changes/bug24898-0296
-rw-r--r--src/or/command.c10
2 files changed, 6 insertions, 10 deletions
diff --git a/changes/bug24898-029 b/changes/bug24898-029
new file mode 100644
index 0000000000..b33f093841
--- /dev/null
+++ b/changes/bug24898-029
@@ -0,0 +1,6 @@
+ o Minor bugfixes (relay):
+ - Make the internal channel_is_client() function look at what sort
+ of connection handshake the other side used, rather than whether
+ the other side ever sent a create_fast cell to us. Backports part
+ of the fixes from bugs 22805 and 24898.
+
diff --git a/src/or/command.c b/src/or/command.c
index 894483e001..e7eb071610 100644
--- a/src/or/command.c
+++ b/src/or/command.c
@@ -347,16 +347,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,