tor

The Tor anonymity network
git clone https://git.dasho.dev/tor.git
Log | Files | Refs | README | LICENSE

commit 2d744de355d65c8f13c721558025bbfbfaa0758e
parent 7f5c6a603cafff9870f487bc03fa2874dcf00f8d
Author: Nick Mathewson <nickm@torproject.org>
Date:   Tue, 17 Sep 2019 11:42:19 -0400

Correct a comment in channel_tls_process_cell.

Diffstat:
Msrc/core/or/channeltls.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c @@ -1073,7 +1073,8 @@ channel_tls_handle_cell(cell_t *cell, or_connection_t *conn) return; /* Reject all but VERSIONS and NETINFO when handshaking. */ - /* (VERSIONS should actually be impossible; it's variable-length.) */ + /* (VERSIONS actually indicates a protocol warning: it's variable-length, + * so if it reaches this function, we're on a v1 connection.) */ if (handshaking && cell->command != CELL_VERSIONS && cell->command != CELL_NETINFO) { log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,