diff options
author | George Kadianakis <desnacked@riseup.net> | 2021-07-22 15:02:13 +0300 |
---|---|---|
committer | George Kadianakis <desnacked@riseup.net> | 2021-07-22 15:03:56 +0300 |
commit | 72aa23a9fd1772de214ea8a22e1371c2d026dc7c (patch) | |
tree | d7b5da998b89eb36306e12285cfbbbb7b4679ade /src/test/test_circuitpadding.c | |
parent | 27d6b3ae7a7e1464395de9ed7e89d430d52f9356 (diff) | |
download | tor-72aa23a9fd1772de214ea8a22e1371c2d026dc7c.tar.gz tor-72aa23a9fd1772de214ea8a22e1371c2d026dc7c.zip |
circpad: Be smarter on when to send back STOP cells.
Diffstat (limited to 'src/test/test_circuitpadding.c')
-rw-r--r-- | src/test/test_circuitpadding.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/test_circuitpadding.c b/src/test/test_circuitpadding.c index 86baf54f40..6ced3f4111 100644 --- a/src/test/test_circuitpadding.c +++ b/src/test/test_circuitpadding.c @@ -1367,7 +1367,7 @@ test_circuitpadding_wronghop(void *arg) tt_ptr_op(client_side->padding_info[0], OP_NE, NULL); tt_ptr_op(relay_side->padding_machine[0], OP_NE, NULL); tt_ptr_op(relay_side->padding_info[0], OP_NE, NULL); - tt_int_op(n_relay_cells, OP_EQ, 3); + tt_int_op(n_relay_cells, OP_EQ, 2); tt_int_op(n_client_cells, OP_EQ, 2); /* 6. Sending negotiated command to relay does nothing */ @@ -1396,11 +1396,9 @@ test_circuitpadding_wronghop(void *arg) /* verify no padding was negotiated */ tt_ptr_op(relay_side->padding_machine[0], OP_EQ, NULL); tt_ptr_op(client_side->padding_machine[0], OP_EQ, NULL); - tt_int_op(n_relay_cells, OP_EQ, 3); - tt_int_op(n_client_cells, OP_EQ, 2); /* verify no echo was sent */ - tt_int_op(n_relay_cells, OP_EQ, 3); + tt_int_op(n_relay_cells, OP_EQ, 2); tt_int_op(n_client_cells, OP_EQ, 2); /* Finish circuit */ |