[tor-commits] [tor/master] wrap a multi-line if body in { } before somebody gets hurt

arma at torproject.org arma at torproject.org
Thu Jul 19 01:24:13 UTC 2018


commit 144fc9bef19f63586952cfe5f5688ce1f02e87be
Author: Roger Dingledine <arma at torproject.org>
Date:   Wed Jul 18 21:23:35 2018 -0400

    wrap a multi-line if body in { } before somebody gets hurt
---
 src/core/or/relay.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/core/or/relay.c b/src/core/or/relay.c
index 32bb69d25..51084e2a1 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);



More information about the tor-commits mailing list