summaryrefslogtreecommitdiff
path: root/src/or/networkstatus.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-12-20 04:54:06 +0000
committerNick Mathewson <nickm@torproject.org>2007-12-20 04:54:06 +0000
commit5c33c0632ef2c2094705024b4068fa3d58cce553 (patch)
tree30d0f97e09269293d391ce14341f890130f43eb0 /src/or/networkstatus.c
parent4aa5e678cd1edf317c106174356e6be8233c1f23 (diff)
downloadtor-5c33c0632ef2c2094705024b4068fa3d58cce553.tar.gz
tor-5c33c0632ef2c2094705024b4068fa3d58cce553.zip
r17268@catbus: nickm | 2007-12-19 23:53:53 -0500
Initialize [un]named_server_map to empty strmaps when router_reload_consensus_networkstatus fails completely. Resolves bug 538. svn:r12881
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r--src/or/networkstatus.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c
index e2f3d9281b..28d0010ff7 100644
--- a/src/or/networkstatus.c
+++ b/src/or/networkstatus.c
@@ -203,6 +203,13 @@ router_reload_consensus_networkstatus(void)
}
}
+ if (!current_consensus) {
+ if (!named_server_map)
+ named_server_map = strmap_new();
+ if (!unnamed_server_map)
+ unnamed_server_map = strmap_new();
+ }
+
routers_update_all_from_networkstatus(time(NULL), 3);
return 0;