diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-24 23:55:36 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-24 23:55:36 +0000 |
commit | dde4bc1fd3a97c664410b98d5918e1a05e4278dc (patch) | |
tree | 4b0a511a4a326b9f00631f021a4749f80a6a504f /src | |
parent | d6c21ab8a732d61a3441b24fd8c062c3c6b38ee9 (diff) | |
download | tor-dde4bc1fd3a97c664410b98d5918e1a05e4278dc.tar.gz tor-dde4bc1fd3a97c664410b98d5918e1a05e4278dc.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/or/dirserv.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c index c9a2b0d24b..92d4880ccb 100644 --- a/src/or/dirserv.c +++ b/src/or/dirserv.c @@ -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); |