summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2021-01-19 12:49:22 -0500
committerNick Mathewson <nickm@torproject.org>2021-01-19 12:49:22 -0500
commit4c82c2d1d4a9800f82bcc47c227a8e6a2a0d168d (patch)
tree01485c268d706df11a9e22fa6e137836e8e29497 /src/core
parent61ee17eb1e3b0c7b92bfa80f3f0f7cbb986db71b (diff)
parenta22bfe04bcb106b14e2416e39dc9f43dc82eeba0 (diff)
downloadtor-4c82c2d1d4a9800f82bcc47c227a8e6a2a0d168d.tar.gz
tor-4c82c2d1d4a9800f82bcc47c227a8e6a2a0d168d.zip
Merge branch 'maint-0.4.3' into maint-0.4.4
Diffstat (limited to 'src/core')
-rw-r--r--src/core/or/channeltls.c4
-rw-r--r--src/core/or/circuitlist.c4
2 files changed, 2 insertions, 6 deletions
diff --git a/src/core/or/channeltls.c b/src/core/or/channeltls.c
index bbb970b8a6..f9eb67c399 100644
--- a/src/core/or/channeltls.c
+++ b/src/core/or/channeltls.c
@@ -1226,9 +1226,7 @@ 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
+ FALLTHROUGH_UNLESS_ALL_BUGS_ARE_FATAL;
case OR_CONN_STATE_TLS_SERVER_RENEGOTIATING:
if (!(command_allowed_before_handshake(var_cell->command))) {
log_fn(LOG_PROTOCOL_WARN, LD_PROTOCOL,
diff --git a/src/core/or/circuitlist.c b/src/core/or/circuitlist.c
index 31c63b4aeb..384835667d 100644
--- a/src/core/or/circuitlist.c
+++ b/src/core/or/circuitlist.c
@@ -846,9 +846,7 @@ circuit_purpose_to_controller_hs_state_string(uint8_t purpose)
"Unrecognized circuit purpose: %d",
(int)purpose);
tor_fragile_assert();
-#ifndef ALL_BUGS_ARE_FATAL
- FALLTHROUGH;
-#endif
+ FALLTHROUGH_UNLESS_ALL_BUGS_ARE_FATAL;
case CIRCUIT_PURPOSE_OR:
case CIRCUIT_PURPOSE_C_GENERAL: