[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] Avoid assertion failure



Update of /home/or/cvsroot/tor/src/or
In directory moria:/tmp/cvs-serv4472/src/or

Modified Files:
	dirserv.c 
Log Message:
Avoid assertion failure

Index: dirserv.c
===================================================================
RCS file: /home/or/cvsroot/tor/src/or/dirserv.c,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -d -r1.210 -r1.211
--- dirserv.c	8 Sep 2005 06:49:23 -0000	1.210
+++ dirserv.c	8 Sep 2005 18:14:23 -0000	1.211
@@ -1160,6 +1160,9 @@
 {
   tor_assert(result);
 
+  if (!cached_v2_networkstatus)
+    cached_v2_networkstatus = strmap_new();
+
   if (!(strcmp(key,"authority"))) {
     if (get_options()->AuthoritativeDir) {
       cached_dir_t *d =