mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 12:23:32 +01:00
Avoid a segfault in routerlist_reset_warnings()
svn:r5464
This commit is contained in:
parent
1da454a42d
commit
7de0c33857
@ -1376,6 +1376,8 @@ routerlist_reset_warnings(void)
|
||||
SMARTLIST_FOREACH(warned_conflicts, char *, cp, tor_free(cp));
|
||||
smartlist_clear(warned_conflicts); /* now the list is empty. */
|
||||
|
||||
if (!routerstatus_list)
|
||||
routerstatus_list = smartlist_create();
|
||||
SMARTLIST_FOREACH(routerstatus_list, local_routerstatus_t *, rs,
|
||||
rs->name_lookup_warned = 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user