aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/channeltls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-09-17 11:42:19 -0400
committerNick Mathewson <nickm@torproject.org>2019-09-17 11:42:19 -0400
commit2d744de355d65c8f13c721558025bbfbfaa0758e (patch)
treede013050f60613da3573e003fa96f388d6660607 /src/core/or/channeltls.c
parent7f5c6a603cafff9870f487bc03fa2874dcf00f8d (diff)
downloadtor-2d744de355d65c8f13c721558025bbfbfaa0758e.tar.gz
tor-2d744de355d65c8f13c721558025bbfbfaa0758e.zip
Correct a comment in channel_tls_process_cell.
Diffstat (limited to 'src/core/or/channeltls.c')
-rw-r--r--src/core/or/channeltls.c3
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,