From 7945e075a42aecaa633565ebbc5d3b809ed24e7e Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 17 Sep 2020 14:04:54 -0400 Subject: Fix underflow in rend_cache/free_all test. We already fixed these in #40099 and #40125. This patch fixes #40126. Bugfix on 0.2.8.1-alpha. --- src/test/test_rendcache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/test/test_rendcache.c b/src/test/test_rendcache.c index 92e135f3b1..8b0e2df485 100644 --- a/src/test/test_rendcache.c +++ b/src/test/test_rendcache.c @@ -954,6 +954,7 @@ test_rend_cache_free_all(void *data) one->parsed = desc_one; desc_one->timestamp = time(NULL) + TIME_IN_THE_PAST; desc_one->pk = pk_generate(0); + rend_cache_increment_allocation(rend_cache_entry_allocation(one)); strmap_set_lc(rend_cache, "foo1", one); rend_cache_free_all(); -- cgit v1.2.3-54-g00ecf