diff options
author | Nick Mathewson <nickm@torproject.org> | 2020-09-17 14:04:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2020-09-17 14:04:54 -0400 |
commit | 7945e075a42aecaa633565ebbc5d3b809ed24e7e (patch) | |
tree | 530c52086c0b53d4bc117449ce53e4b175112554 /src | |
parent | 47f1d19f8e6e1795ad7a73cb96bf44f355442e85 (diff) | |
download | tor-7945e075a42aecaa633565ebbc5d3b809ed24e7e.tar.gz tor-7945e075a42aecaa633565ebbc5d3b809ed24e7e.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/test_rendcache.c | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |