aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-13 21:19:54 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-13 21:19:54 +0000
commita1ce60f9a662d9a4c9dee295eec888e6a243ab7d (patch)
treefc52b64ce57c5d895f9776f2731421338f1651f5 /src
parent9356a0b1dd21d5cedb58ed17e054ac9060221002 (diff)
downloadtor-a1ce60f9a662d9a4c9dee295eec888e6a243ab7d.tar
tor-a1ce60f9a662d9a4c9dee295eec888e6a243ab7d.tar.gz
r14546@catbus: nickm | 2007-08-13 17:19:01 -0400
Make if-modified-since work on consensuses svn:r11095
Diffstat (limited to 'src')
-rw-r--r--src/or/dirserv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 0646c6fb9..579dc62de 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -2723,6 +2723,8 @@ dirserv_remove_old_statuses(smartlist_t *fps, time_t cutoff)
cached_dir_t *d;
if (router_digest_is_me(digest) && the_v2_networkstatus)
d = the_v2_networkstatus;
+ else if (tor_digest_is_zero(digest) && cached_v3_networkstatus)
+ d = cached_v3_networkstatus;
else
d = digestmap_get(cached_v2_networkstatus, digest);
if (d && d->published <= cutoff) {