diff options
author | David Goulet <dgoulet@torproject.org> | 2020-01-07 15:03:24 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-01-14 13:31:08 -0500 |
commit | 59dac38ebe4e6489c2a06d07470023ed5fbdd0aa (patch) | |
tree | 0111634909e9973480e68a0f917b612ca8b56720 /src/core/or/command.c | |
parent | e231cd5b61afcb6640a7e17506bf33ddc6b1d2fe (diff) | |
download | tor-59dac38ebe4e6489c2a06d07470023ed5fbdd0aa.tar.gz tor-59dac38ebe4e6489c2a06d07470023ed5fbdd0aa.zip |
chan: Remove dead var cell handler from channel_t
The variable lenght cells are handled directly by
channel_tls_handle_var_cell() from an OR connection reading its inbuf. The
channel var cell handler (agnostic) was never used.
Closes #32892
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/core/or/command.c')
-rw-r--r-- | src/core/or/command.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/src/core/or/command.c b/src/core/or/command.c index 1c97437769..2f3459f1ea 100644 --- a/src/core/or/command.c +++ b/src/core/or/command.c @@ -217,23 +217,6 @@ command_process_cell(channel_t *chan, cell_t *cell) } } -/** Process an incoming var_cell from a channel; in the current protocol all - * the var_cells are handshake-related and handled below the channel layer, - * so this just logs a warning and drops the cell. - */ - -void -command_process_var_cell(channel_t *chan, var_cell_t *var_cell) -{ - tor_assert(chan); - tor_assert(var_cell); - - log_info(LD_PROTOCOL, - "Received unexpected var_cell above the channel layer of type %d" - "; dropping it.", - var_cell->command); -} - /** Process a 'create' <b>cell</b> that just arrived from <b>chan</b>. Make a * new circuit with the p_circ_id specified in cell. Put the circuit in state * onionskin_pending, and pass the onionskin to the cpuworker. Circ will get @@ -685,8 +668,7 @@ command_setup_channel(channel_t *chan) tor_assert(chan); channel_set_cell_handlers(chan, - command_process_cell, - command_process_var_cell); + command_process_cell); } /** Given a listener, install the right handler to process incoming |