summaryrefslogtreecommitdiff
path: root/src/or/rendservice.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-03-23 06:21:48 +0000
committerNick Mathewson <nickm@torproject.org>2005-03-23 06:21:48 +0000
commit631ab5c69b49f84ca191ff546f4795040e561843 (patch)
treeabe063c015ccb37b905909e4a086fc5b9b59788d /src/or/rendservice.c
parent905c16846aa52841581204d53d0bfbdd5252a2ff (diff)
downloadtor-631ab5c69b49f84ca191ff546f4795040e561843.tar.gz
tor-631ab5c69b49f84ca191ff546f4795040e561843.zip
Add a magic value to cpath_layer_t to make sure that we can tell valid cpaths from freed ones. I audited this once; it could use another audit.
svn:r3831
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r--src/or/rendservice.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c
index 28fac1ddd3..d9f637c396 100644
--- a/src/or/rendservice.c
+++ b/src/or/rendservice.c
@@ -508,6 +508,7 @@ rend_service_introduce(circuit_t *circuit, const char *request, size_t request_l
sizeof(launched->rend_query));
launched->build_state->pending_final_cpath = cpath =
tor_malloc_zero(sizeof(crypt_path_t));
+ cpath->magic = CRYPT_PATH_MAGIC;
launched->build_state->expiry_time = time(NULL) + MAX_REND_TIMEOUT;
cpath->handshake_state = dh;