]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
and forward-port too.
authorRoger Dingledine <arma@torproject.org>
Fri, 9 Jun 2006 06:52:49 +0000 (06:52 +0000)
committerRoger Dingledine <arma@torproject.org>
Fri, 9 Jun 2006 06:52:49 +0000 (06:52 +0000)
svn:r6573

src/or/routerlist.c

index bbed15462ce5949f8faee30357def55b1119ad21..db7c3846dcf1c132b60b578a6ef91d40ae3ed0e5 100644 (file)
@@ -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)