summaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-06-27 18:28:38 -0400
committerNick Mathewson <nickm@torproject.org>2017-06-27 18:28:38 -0400
commit559195ea82bf1c0610898fd96cd5a835b2e4f9a7 (patch)
treebec59d52b6bd2c95d1aa86f8c4068543bc2d64c1 /src/or/dirserv.c
parent733ce556ad6a59a111b63a860904799c30513a24 (diff)
parent2cd49d9ea6f8bad20215ad17d5057a8eea8e39e8 (diff)
downloadtor-559195ea82bf1c0610898fd96cd5a835b2e4f9a7.tar.gz
tor-559195ea82bf1c0610898fd96cd5a835b2e4f9a7.zip
Merge branch 'maint-0.3.1'
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index 75af7ff674..75a245e07a 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -14,6 +14,7 @@
#include "connection.h"
#include "connection_or.h"
#include "conscache.h"
+#include "consdiffmgr.h"
#include "control.h"
#include "directory.h"
#include "dirserv.h"
@@ -3530,6 +3531,11 @@ spooled_resource_estimate_size(const spooled_resource_t *spooled,
} else {
cached_dir_t *cached;
if (spooled->consensus_cache_entry) {
+ if (published_out) {
+ consensus_cache_entry_get_valid_after(
+ spooled->consensus_cache_entry, published_out);
+ }
+
return spooled->cce_len;
}
if (spooled->cached_dir_ref) {