From 30f6c57fd7eb711e0540ac4ff7ac51bbcd8e16eb Mon Sep 17 00:00:00 2001 From: Roger Dingledine Date: Fri, 9 Jun 2006 06:52:49 +0000 Subject: [PATCH] and forward-port too. svn:r6573 --- src/or/routerlist.c | 2 ++ 1 file changed, 2 insertions(+) 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)