]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r11933@catbus: nickm | 2007-02-24 18:55:33 -0500
authorNick Mathewson <nickm@torproject.org>
Sat, 24 Feb 2007 23:55:36 +0000 (23:55 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 24 Feb 2007 23:55:36 +0000 (23:55 +0000)
 Fix a bug in 9572: after we decref a defunct v1 directory, drop the main reference to it.  Should fix bug 396.  Many thanks to seeess for tracking this one down.

svn:r9648

src/or/dirserv.c

index c9a2b0d24b4b0778007804aacb047fc85de38c3f..92d4880ccb3608f7b13d81d86e2342e66bed8d2a 100644 (file)
@@ -1153,6 +1153,7 @@ dirserv_clear_old_v1_info(time_t now)
   if (cached_directory &&
       cached_directory->published < (now - MAX_V1_DIRECTORY_AGE)) {
     cached_dir_decref(cached_directory);
+    cached_directory = NULL;
   }
   if (cached_runningrouters.published < (now - MAX_V1_RR_AGE)) {
     clear_cached_dir(&cached_runningrouters);