summaryrefslogtreecommitdiff
path: root/src/feature/rend/rendservice.c
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/rend/rendservice.c
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/rend/rendservice.c')
-rw-r--r--src/feature/rend/rendservice.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/feature/rend/rendservice.c b/src/feature/rend/rendservice.c
index 0ecd0e6ff6..98c7253bcc 100644
--- a/src/feature/rend/rendservice.c
+++ b/src/feature/rend/rendservice.c
@@ -2158,7 +2158,8 @@ rend_service_receive_introduction(origin_circuit_t *circuit,
launched->build_state->service_pending_final_cpath_ref->refcount = 1;
launched->build_state->service_pending_final_cpath_ref->cpath = cpath =
- crypt_path_new();
+ tor_malloc_zero(sizeof(crypt_path_t));
+ cpath->magic = CRYPT_PATH_MAGIC;
launched->build_state->expiry_time = now + MAX_REND_TIMEOUT;
cpath->rend_dh_handshake_state = dh;