aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-11-28 16:29:27 +0000
committerNick Mathewson <nickm@torproject.org>2005-11-28 16:29:27 +0000
commit7de0c338579b1d7bf47d61d23c82218fb93bbd8c (patch)
treefe306e561d6ec7e62fa5189d0ff556f9fbddb54a /src
parent1da454a42d850ec50612416e3d1d5ac1c43b517b (diff)
downloadtor-7de0c338579b1d7bf47d61d23c82218fb93bbd8c.tar
tor-7de0c338579b1d7bf47d61d23c82218fb93bbd8c.tar.gz
Avoid a segfault in routerlist_reset_warnings()
svn:r5464
Diffstat (limited to 'src')
-rw-r--r--src/or/routerlist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c
index 241b9e76f..0e5ec2aa9 100644
--- a/src/or/routerlist.c
+++ b/src/or/routerlist.c
@@ -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);