summaryrefslogtreecommitdiff
path: root/src/feature/hs/hs_cache.c
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-06-03 16:18:32 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-11-18 19:21:34 +0200
commitce422a9d4a6f170b35f54545eface216f87c7089 (patch)
tree06954d88b9bce089526468bac7a050ee56f77b6f /src/feature/hs/hs_cache.c
parent53ac9a9a91a8f2ab45c75550456716074911e685 (diff)
downloadtor-ce422a9d4a6f170b35f54545eface216f87c7089.tar.gz
tor-ce422a9d4a6f170b35f54545eface216f87c7089.zip
hs-v3: Decrypt pending descriptors when we get new client auth creds.
Diffstat (limited to 'src/feature/hs/hs_cache.c')
-rw-r--r--src/feature/hs/hs_cache.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/feature/hs/hs_cache.c b/src/feature/hs/hs_cache.c
index 49d5ade419..9cbef2fa41 100644
--- a/src/feature/hs/hs_cache.c
+++ b/src/feature/hs/hs_cache.c
@@ -954,6 +954,10 @@ hs_cache_client_new_auth_parse(const ed25519_public_key_t *service_pk)
tor_assert(service_pk);
+ if (!hs_cache_v3_client) {
+ return false;
+ }
+
cached_desc = lookup_v3_desc_as_client(service_pk->pubkey);
if (cached_desc == NULL || cached_desc->desc != NULL) {
/* No entry for that service or the descriptor is already decoded. */