mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-14 07:03:44 +01:00
Crashing dirservers on startup is often considered bad form.
svn:r4874
This commit is contained in:
parent
71c4173bb6
commit
70fe2a6cee
@ -1064,7 +1064,8 @@ router_load_routerlist_from_directory(const char *s,
|
|||||||
smartlist_t *changed = smartlist_create();
|
smartlist_t *changed = smartlist_create();
|
||||||
SMARTLIST_FOREACH(new_list->routers, routerinfo_t *, r,
|
SMARTLIST_FOREACH(new_list->routers, routerinfo_t *, r,
|
||||||
{
|
{
|
||||||
if (router_add_to_routerlist(r,NULL)==0)
|
char *msg;
|
||||||
|
if (router_add_to_routerlist(r,&msg)==0)
|
||||||
smartlist_add(changed, r);
|
smartlist_add(changed, r);
|
||||||
});
|
});
|
||||||
smartlist_clear(new_list->routers);
|
smartlist_clear(new_list->routers);
|
||||||
|
Loading…
Reference in New Issue
Block a user