diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-17 11:42:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-17 11:42:19 -0400 |
commit | 2d744de355d65c8f13c721558025bbfbfaa0758e (patch) | |
tree | de013050f60613da3573e003fa96f388d6660607 /src/core | |
parent | 7f5c6a603cafff9870f487bc03fa2874dcf00f8d (diff) | |
download | tor-2d744de355d65c8f13c721558025bbfbfaa0758e.tar.gz tor-2d744de355d65c8f13c721558025bbfbfaa0758e.zip |
Correct a comment in channel_tls_process_cell.
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/or/channeltls.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c index 2bc2cba313..f727799387 100644 --- 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, |