mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 05:33:47 +01:00
Fix assert failure on directory startup.
svn:r4858
This commit is contained in:
parent
f559c49c39
commit
47669fa0fd
@ -869,7 +869,11 @@ router_add_to_routerlist(routerinfo_t *router, const char **msg)
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user