summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-06-09 06:52:49 +0000
committerRoger Dingledine <arma@torproject.org>2006-06-09 06:52:49 +0000
commit30f6c57fd7eb711e0540ac4ff7ac51bbcd8e16eb (patch)
tree0a7e0ff812bf1fb541a38e186914d8cd432b5d50 /src
parent85d408a573e1408c601369d1979008e678ea5605 (diff)
downloadtor-30f6c57fd7eb711e0540ac4ff7ac51bbcd8e16eb.tar.gz
tor-30f6c57fd7eb711e0540ac4ff7ac51bbcd8e16eb.zip
and forward-port too.
svn:r6573
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index bbed15462c..db7c3846dc 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -3668,6 +3668,8 @@ router_have_minimum_dir_info(void)
SMARTLIST_FOREACH(networkstatus_list, networkstatus_t *, ns,
tot += routerstatus_count_usable_entries(ns->entries));
avg = tot / n_ns;
+ if (!routerstatus_list)
+ routerstatus_list = smartlist_create();
SMARTLIST_FOREACH(routerstatus_list, local_routerstatus_t *, rs,
{
if (rs->status.is_running)