summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/routerlist.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index e5c806af1f..da8c0e92c5 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3466,6 +3466,9 @@ update_router_descriptor_client_downloads(time_t now)
"Called router_descriptor_client_downloads() on a mirror?");
}
+ /* XXX here's another magic 2 that probably should be replaced
+ * by <= smartlist_len(trusted_dir_servers)/2
+ * or by a function returning same. -- weasel */
if (networkstatus_list && smartlist_len(networkstatus_list) < 2) {
log_info(LD_DIR,
"Not enough networkstatus documents to launch requests.");