]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r14546@catbus: nickm | 2007-08-13 17:19:01 -0400
authorNick Mathewson <nickm@torproject.org>
Mon, 13 Aug 2007 21:19:54 +0000 (21:19 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 13 Aug 2007 21:19:54 +0000 (21:19 +0000)
 Make if-modified-since work on consensuses

svn:r11095

src/or/dirserv.c

index 0646c6fb996dcd6fcd074cb873f97361863b317f..579dc62de4d3f3bc66d14949165c8caabe8463f0 100644 (file)
@@ -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) {