aboutsummaryrefslogtreecommitdiff
path: root/src/feature/hs
diff options
context:
space:
mode:
authorGeorge Kadianakis <desnacked@riseup.net>2019-04-26 14:26:22 +0300
committerGeorge Kadianakis <desnacked@riseup.net>2019-05-03 18:15:26 +0300
commit4060b7623d3845a4d4ecdbf8f9c219e0148e1380 (patch)
treee7debcebc3f604ecdd7d010bcaa7d59bca218c6e /src/feature/hs
parent2e9e3e7d4198ff75e6bd12bc7a38c0f288fbe381 (diff)
downloadtor-4060b7623d3845a4d4ecdbf8f9c219e0148e1380.tar.gz
tor-4060b7623d3845a4d4ecdbf8f9c219e0148e1380.zip
Revert "Hiding crypt_path_t: Create a constructor for crypt_path_t."
This reverts commit ab8b80944967ee5a6a0c45dbf61839cf257bfe44.
Diffstat (limited to 'src/feature/hs')
-rw-r--r--src/feature/hs/hs_circuit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/hs/hs_circuit.c b/src/feature/hs/hs_circuit.c
index 7d17aff72f..a6e86c5ab3 100644
--- a/src/feature/hs/hs_circuit.c
+++ b/src/feature/hs/hs_circuit.c
@@ -87,7 +87,8 @@ create_rend_cpath(const uint8_t *ntor_key_seed, size_t seed_len,
}
/* Setup the cpath */
- cpath = crypt_path_new();
+ cpath = tor_malloc_zero(sizeof(crypt_path_t));
+ cpath->magic = CRYPT_PATH_MAGIC;
if (cpath_init_circuit_crypto(cpath, (char*)keys, sizeof(keys),
is_service_side, 1) < 0) {