瀏覽代碼

Add missing braces around conditional.

Nick Mathewson 9 年之前
父節點
當前提交
4e2a7cd3ae
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/or/routerparse.c

+ 2 - 1
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) {