From 548a86377922fb8df94a782778442534235ba367 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 8 Sep 2005 18:14:23 +0000 Subject: [PATCH] Avoid assertion failure svn:r4931 --- src/or/dirserv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/or/dirserv.c b/src/or/dirserv.c index d4a2dcee56..d8115c1c64 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -1160,6 +1160,9 @@ dirserv_get_networkstatus_v2(smartlist_t *result, { tor_assert(result); + if (!cached_v2_networkstatus) + cached_v2_networkstatus = strmap_new(); + if (!(strcmp(key,"authority"))) { if (get_options()->AuthoritativeDir) { cached_dir_t *d =