[tor-commits] [tor/master] Add missing braces around conditional.

nickm at torproject.org nickm at torproject.org
Mon Jun 27 17:20:09 UTC 2016


commit 4e2a7cd3aef479eb4af299fd67392f6e98090b78
Author: Nick Mathewson <nickm at torproject.org>
Date:   Mon Jun 27 13:19:49 2016 -0400

    Add missing braces around conditional.
---
 src/or/routerparse.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 569c73f..6550fa6 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -3208,10 +3208,11 @@ networkstatus_parse_vote_from_string(const char *s, const char **eos_out,
       if ((rs = routerstatus_parse_entry_from_string(rs_area, &s, rs_tokens,
                                                      NULL, NULL,
                                                      ns->consensus_method,
-                                                     flav)))
+                                                     flav))) {
         /* Use exponential-backoff scheduling when downloading microdescs */
         rs->dl_status.backoff = DL_SCHED_RANDOM_EXPONENTIAL;
         smartlist_add(ns->routerstatus_list, rs);
+      }
     }
   }
   for (i = 1; i < smartlist_len(ns->routerstatus_list); ++i) {



More information about the tor-commits mailing list