Commit 7de0c338 authored by Nick Mathewson's avatar Nick Mathewson 🌉
Browse files

Avoid a segfault in routerlist_reset_warnings()


svn:r5464
parent 1da454a4
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment