[or-cvs] Oops. We may not have a networkstatus list when we first pa...

Nick Mathewson nickm at seul.org
Mon Mar 27 05:12:10 UTC 2006


Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv7520/src/or

Modified Files:
	routerlist.c 
Log Message:
Oops. We may not have a networkstatus list when we first parse the cached routers.

Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.471
retrieving revision 1.472
diff -u -p -d -r1.471 -r1.472
--- routerlist.c	27 Mar 2006 05:07:57 -0000	1.471
+++ routerlist.c	27 Mar 2006 05:12:07 -0000	1.472
@@ -1479,6 +1479,8 @@ router_add_to_routerlist(routerinfo_t *r
 
   if (!routerlist)
     router_get_routerlist();
+  if (!networkstatus_list)
+    networkstatus_list = smartlist_create();
 
   id_digest = router->cache_info.identity_digest;
 



More information about the tor-commits mailing list