diff options
author | Neel Chauhan <neel@neelc.org> | 2019-07-28 16:34:39 -0400 |
---|---|---|
committer | David Goulet <dgoulet@torproject.org> | 2019-10-30 08:47:21 -0400 |
commit | f81e4aa831c51e47954c2d52b72066e796253d80 (patch) | |
tree | 980f71ca968c9857d5cb5dff86b3c3eb8f0a48c2 /src/feature/rend/rendcache.h | |
parent | dce1f63d4407da0530111ebe049f286a38110f17 (diff) | |
download | tor-f81e4aa831c51e47954c2d52b72066e796253d80.tar.gz tor-f81e4aa831c51e47954c2d52b72066e796253d80.zip |
hs-v2: Lookup intro failure cache when picking an intro from descriptor
When picking an intro point from the service descriptor, the client failed to
lookup the failure cache.
It made an HS v2 client re-pick bad intro points for which we already know it
won't work in the first place.
Based on Neel Chauhan original patch.
Fixes #25568
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/feature/rend/rendcache.h')
-rw-r--r-- | src/feature/rend/rendcache.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/feature/rend/rendcache.h b/src/feature/rend/rendcache.h index aec97eabb8..c83f36d189 100644 --- a/src/feature/rend/rendcache.h +++ b/src/feature/rend/rendcache.h @@ -80,6 +80,8 @@ int rend_cache_store_v2_desc_as_client(const char *desc, rend_cache_entry_t **entry); size_t rend_cache_get_total_allocation(void); +bool rend_cache_intro_failure_exists(const char *service_id, + const uint8_t *intro_identity); void rend_cache_intro_failure_note(rend_intro_point_failure_t failure, const uint8_t *identity, const char *service_id); |