aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2024-06-24 13:29:04 -0400
committerNick Mathewson <nickm@torproject.org>2024-06-24 13:29:04 -0400
commita696559d7844f9e81ae5f8f82ab6e2b8aa421e25 (patch)
treee92d3d8846310a4fed195903436a84e6b331dc56 /src/core
parentef059795873eecae9e25273f9c1332797e5c24f2 (diff)
downloadtor-a696559d7844f9e81ae5f8f82ab6e2b8aa421e25.tar.gz
tor-a696559d7844f9e81ae5f8f82ab6e2b8aa421e25.zip
prop350: Stop accepting CREATE and EXTEND.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/or/command.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/or/command.c b/src/core/or/command.c
index cad7a173b6..c35400d7a1 100644
--- a/src/core/or/command.c
+++ b/src/core/or/command.c
@@ -331,6 +331,14 @@ command_process_create_cell(cell_t *cell, channel_t *chan)
return;
}
+ /* We no longer accept TAP, for any reason. */
+ if (create_cell->handshake_type == ONION_HANDSHAKE_TYPE_TAP) {
+ tor_free(create_cell);
+ /* TODO: Should we collect statistics here? Should we log? */
+ circuit_mark_for_close(TO_CIRCUIT(circ), END_CIRC_REASON_TORPROTOCOL);
+ return;
+ }
+
/* Mark whether this circuit used TAP in case we need to use this
* information for onion service statistics later on. */
if (create_cell->handshake_type == ONION_HANDSHAKE_TYPE_FAST ||