Browse Source

Oops. We may not have a networkstatus list when we first parse the cached routers.

svn:r6248
Nick Mathewson 18 years ago
parent
commit
c74bd877e2
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/routerlist.c

+ 2 - 0
src/or/routerlist.c

@@ -1479,6 +1479,8 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg,
 
   if (!routerlist)
     router_get_routerlist();
+  if (!networkstatus_list)
+    networkstatus_list = smartlist_create();
 
   id_digest = router->cache_info.identity_digest;