summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2018-07-18 21:23:35 -0400
committerRoger Dingledine <arma@torproject.org>2018-07-18 21:23:35 -0400
commit144fc9bef19f63586952cfe5f5688ce1f02e87be (patch)
tree4d125d01edfc63a8bb75ffd1ecb92dfe58e46c1b
parent64af15d3737921b025a3902acb1dc6b674eb966c (diff)
downloadtor-144fc9bef19f63586952cfe5f5688ce1f02e87be.tar.gz
tor-144fc9bef19f63586952cfe5f5688ce1f02e87be.zip
wrap a multi-line if body in { } before somebody gets hurt
-rw-r--r--src/core/or/relay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/or/relay.c b/src/core/or/relay.c
index 32bb69d25f..51084e2a17 100644
--- a/src/core/or/relay.c
+++ b/src/core/or/relay.c
@@ -2005,9 +2005,10 @@ connection_edge_package_raw_inbuf(edge_connection_t *conn, int package_partial,
}
if (connection_edge_send_command(conn, RELAY_COMMAND_DATA,
- payload, length) < 0 )
+ payload, length) < 0 ) {
/* circuit got marked for close, don't continue, don't need to mark conn */
return 0;
+ }
if (!cpath_layer) { /* non-rendezvous exit */
tor_assert(circ->package_window > 0);