From 07f2940b4519d801eb10b9f5e49790aced1f6322 Mon Sep 17 00:00:00 2001 From: Alexander Færøy Date: Fri, 23 Jun 2017 23:55:54 +0000 Subject: Set published_out for consensus cache entries in spooled_resource_estimate_size(). This patch ensures that the published_out output parameter is set to the current consensus cache entry's "valid after" field. See: https://bugs.torproject.org/22702 --- src/or/consdiffmgr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/consdiffmgr.h') diff --git a/src/or/consdiffmgr.h b/src/or/consdiffmgr.h index fe4f9ee239..079f9fe2d2 100644 --- a/src/or/consdiffmgr.h +++ b/src/or/consdiffmgr.h @@ -44,6 +44,9 @@ int consensus_cache_entry_get_fresh_until( int consensus_cache_entry_get_valid_until( const struct consensus_cache_entry_t *ent, time_t *out); +int consensus_cache_entry_get_valid_after( + const struct consensus_cache_entry_t *ent, + time_t *out); void consdiffmgr_rescan(void); int consdiffmgr_cleanup(void); -- cgit v1.2.3-54-g00ecf