Browse Source

r14546@catbus: nickm | 2007-08-13 17:19:01 -0400
Make if-modified-since work on consensuses


svn:r11095

Nick Mathewson 18 years ago
parent
commit
a1ce60f9a6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/dirserv.c

+ 2 - 0
src/or/dirserv.c

@@ -2723,6 +2723,8 @@ dirserv_remove_old_statuses(smartlist_t *fps, time_t cutoff)
     cached_dir_t *d;
     cached_dir_t *d;
     if (router_digest_is_me(digest) && the_v2_networkstatus)
     if (router_digest_is_me(digest) && the_v2_networkstatus)
       d = the_v2_networkstatus;
       d = the_v2_networkstatus;
+    else if (tor_digest_is_zero(digest) && cached_v3_networkstatus)
+      d = cached_v3_networkstatus;
     else
     else
       d = digestmap_get(cached_v2_networkstatus, digest);
       d = digestmap_get(cached_v2_networkstatus, digest);
     if (d && d->published <= cutoff) {
     if (d && d->published <= cutoff) {