aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_relaycell.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2019-05-07 09:19:41 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-22 11:47:20 -0400
commit69e0d5bfc7d52f223d686bcd87f629f01b03561a (patch)
treece7f12e5a994bdbdf0614e9f9b9142f14f2c5a22 /src/test/test_relaycell.c
parent59b9eecc19877f38b2c9d8b4f7964c6e9875f4c0 (diff)
downloadtor-69e0d5bfc7d52f223d686bcd87f629f01b03561a.tar.gz
tor-69e0d5bfc7d52f223d686bcd87f629f01b03561a.zip
sendme: Validate v1 SENDMEs on both client and exit side
The validation of the SENDME cell is now done as the very first thing when receiving it for both client and exit. On failure to validate, the circuit is closed as detailed in the specification. Part of #30428 Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_relaycell.c')
-rw-r--r--src/test/test_relaycell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/test_relaycell.c b/src/test/test_relaycell.c
index 0623583511..d6372d3956 100644
--- a/src/test/test_relaycell.c
+++ b/src/test/test_relaycell.c
@@ -812,7 +812,7 @@ test_circbw_relay(void *arg)
ASSERT_UNCOUNTED_BW();
/* Sendme on circuit with non-full window: counted */
- PACK_CELL(0, RELAY_COMMAND_SENDME, "Data1234");
+ PACK_CELL(0, RELAY_COMMAND_SENDME, "");
circ->cpath->package_window = 900;
connection_edge_process_relay_cell(&cell, TO_CIRCUIT(circ), edgeconn,
circ->cpath);