aboutsummaryrefslogtreecommitdiff
path: root/src/or/routerparse.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-06-27 13:19:49 -0400
committerNick Mathewson <nickm@torproject.org>2016-06-27 13:19:49 -0400
commit4e2a7cd3aef479eb4af299fd67392f6e98090b78 (patch)
treeddccf501e4a20a4e549b72f88e13151703ce4c61 /src/or/routerparse.c
parent14169a3d703315de703a06bc61855aba8ef7ede8 (diff)
downloadtor-4e2a7cd3aef479eb4af299fd67392f6e98090b78.tar.gz
tor-4e2a7cd3aef479eb4af299fd67392f6e98090b78.zip
Add missing braces around conditional.
Diffstat (limited to 'src/or/routerparse.c')
-rw-r--r--src/or/routerparse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 569c73f8e5..6550fa6715 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) {