From 4060b7623d3845a4d4ecdbf8f9c219e0148e1380 Mon Sep 17 00:00:00 2001 From: George Kadianakis Date: Fri, 26 Apr 2019 14:26:22 +0300 Subject: Revert "Hiding crypt_path_t: Create a constructor for crypt_path_t." This reverts commit ab8b80944967ee5a6a0c45dbf61839cf257bfe44. --- src/feature/hs/hs_circuit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/feature/hs') 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) { -- cgit v1.2.3-54-g00ecf