diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-03-23 06:21:48 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-03-23 06:21:48 +0000 |
commit | 631ab5c69b49f84ca191ff546f4795040e561843 (patch) | |
tree | abe063c015ccb37b905909e4a086fc5b9b59788d /src/or/rendservice.c | |
parent | 905c16846aa52841581204d53d0bfbdd5252a2ff (diff) | |
download | tor-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.c | 1 |
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; |