]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Silence warning of relaycell/circbw tst.
authorGeorge Kadianakis <desnacked@riseup.net>
Wed, 13 Jun 2018 11:14:17 +0000 (14:14 +0300)
committerGeorge Kadianakis <desnacked@riseup.net>
Wed, 13 Jun 2018 11:14:17 +0000 (14:14 +0300)
Shouldn't send RELAY_COMMAND_DATA cell with 0 stream id.

src/test/test_relaycell.c

index 1db5202739faa90e7e13d46ffe872550ad8af062..f92033920eeb275edd0901082f0e0a1f204d830e 100644 (file)
@@ -221,7 +221,7 @@ test_circbw_relay(void *arg)
   ASSERT_UNCOUNTED_BW();
 
   /* Data cell on stream 0: not counted */
-  PACK_CELL(0, RELAY_COMMAND_DATA, "Data1234");
+  PACK_CELL(1, RELAY_COMMAND_DATA, "Data1234");
   connection_edge_process_relay_cell(&cell, TO_CIRCUIT(circ), edgeconn,
                                      circ->cpath);
   ASSERT_UNCOUNTED_BW();