mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-10 13:13:44 +01:00
r11933@catbus: nickm | 2007-02-24 18:55:33 -0500
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
This commit is contained in:
parent
d6c21ab8a7
commit
dde4bc1fd3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user