[or-cvs] r9332: fix recently-introduced segfault when not running as a dirse (in tor/trunk: . src/or)

nickm at seul.org nickm at seul.org
Thu Jan 11 14:13:06 UTC 2007


Author: nickm
Date: 2007-01-11 09:13:04 -0500 (Thu, 11 Jan 2007)
New Revision: 9332

Modified:
   tor/trunk/
   tor/trunk/src/or/dirserv.c
Log:
 r11930 at Kushana:  nickm | 2007-01-11 09:05:27 -0500
 fix recently-introduced segfault when not running as a dirserver



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r11930] on c95137ef-5f19-0410-b913-86e773d04f59

Modified: tor/trunk/src/or/dirserv.c
===================================================================
--- tor/trunk/src/or/dirserv.c	2007-01-11 01:41:07 UTC (rev 9331)
+++ tor/trunk/src/or/dirserv.c	2007-01-11 14:13:04 UTC (rev 9332)
@@ -1105,6 +1105,9 @@
 {
   digestmap_iter_t *iter;
 
+  if (!cached_v2_networkstatus)
+    return;
+
   for (iter = digestmap_iter_init(cached_v2_networkstatus);
        !digestmap_iter_done(iter); ) {
     const char *ident;



More information about the tor-commits mailing list