[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] Fix assert failure on directory startup.
Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv1213/src/or
Modified Files:
routerlist.c
Log Message:
Fix assert failure on directory startup.
Index: routerlist.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/routerlist.c,v
retrieving revision 1.255
retrieving revision 1.256
diff -u -d -r1.255 -r1.256
--- routerlist.c 26 Aug 2005 20:59:04 -0000 1.255
+++ routerlist.c 26 Aug 2005 21:12:34 -0000 1.256
@@ -869,7 +869,11 @@
int authdir = get_options()->AuthoritativeDir;
int authdir_verified = 0;
- tor_assert(routerlist);
+ if (!routerlist) {
+ routerlist = tor_malloc_zero(sizeof(routerlist_t));
+ routerlist->routers = smartlist_create();
+ }
+
crypto_pk_get_digest(router->identity_pkey, id_digest);
if (authdir) {