aboutsummaryrefslogtreecommitdiff
path: root/src/core/or/channeltls.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-01-11 14:25:56 -0500
committerNick Mathewson <nickm@torproject.org>2021-01-11 14:25:56 -0500
commitccdbbae4eceb8f6c508b67d53d6242961bf2e6eb (patch)
treef25b78643775324222c9684b6f2c2c100c70648b /src/core/or/channeltls.c
parentfcae26adf710cf1fe393fde723e9a2caf6012b09 (diff)
downloadtor-ccdbbae4eceb8f6c508b67d53d6242961bf2e6eb.tar.gz
tor-ccdbbae4eceb8f6c508b67d53d6242961bf2e6eb.zip
Fix warnings in current debian-hardened CI.
We're getting "fallback annotation annotation in unreachable code" warnings when we build with ALL_BUGS_ARE_FATAL. This patch fixes that. Fixes bug 40241. Bugfix on 0.3.5.4-alpha.
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 299ab88576..bdd82f3138 100644
--- a/src/core/or/channeltls.c
+++ b/src/core/or/channeltls.c
@@ -1225,8 +1225,9 @@ channel_tls_handle_var_cell(var_cell_t *var_cell, or_connection_t *conn)
* the v2 and v3 handshakes. */
/* But that should be happening any longer've disabled bufferevents. */
tor_assert_nonfatal_unreached_once();
-
+#ifndef ALL_BUGS_ARE_FATAL
FALLTHROUGH;
+#endif
case OR_CONN_STATE_TLS_SERVER_RENEGOTIATING:
if (!(command_allowed_before_handshake(var_cell->command))) {
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,