Avoid a segfault in routerlist_reset_warnings()

svn:r5464
This commit is contained in:
Nick Mathewson 2005-11-28 16:29:27 +00:00
parent 1da454a42d
commit 7de0c33857

View File

@ -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);