summaryrefslogtreecommitdiff
path: root/src/or/hs_cache.c
diff options
context:
space:
mode:
authorJ. Ryan Stinnett <jryans@gmail.com>2016-12-04 20:30:26 -0600
committerDavid Goulet <dgoulet@torproject.org>2016-12-16 12:48:33 -0500
commit19cf074f4d8e209af35c1829626738b3b924cb65 (patch)
tree6dce6a1c6eeef34e523bcea82af2e8f9d6ae702b /src/or/hs_cache.c
parent698ed75e1a4b55936e412a476b2f4880cd7b2fa7 (diff)
downloadtor-19cf074f4d8e209af35c1829626738b3b924cb65.tar.gz
tor-19cf074f4d8e209af35c1829626738b3b924cb65.zip
hs: Remove private keys from hs_desc_plaintext_data_t.
Since both the client and service will use that data structure to store the descriptor decoded data, only the public keys are common to both. Fixes #20572. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/or/hs_cache.c')
-rw-r--r--src/or/hs_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/hs_cache.c b/src/or/hs_cache.c
index b7ff979e5b..e5bd0e49a7 100644
--- a/src/or/hs_cache.c
+++ b/src/or/hs_cache.c
@@ -86,7 +86,7 @@ cache_dir_desc_new(const char *desc)
}
/* The blinded pubkey is the indexed key. */
- dir_desc->key = dir_desc->plaintext_data->blinded_kp.pubkey.pubkey;
+ dir_desc->key = dir_desc->plaintext_data->blinded_pubkey.pubkey;
dir_desc->created_ts = time(NULL);
return dir_desc;