summaryrefslogtreecommitdiff
path: root/src/or/rendclient.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/rendclient.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/rendclient.c')
-rw-r--r--src/or/rendclient.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/rendclient.c b/src/or/rendclient.c
index 612d3f6b23..9fc6607533 100644
--- a/src/or/rendclient.c
+++ b/src/or/rendclient.c
@@ -82,6 +82,7 @@ rend_client_send_introduction(circuit_t *introcirc, circuit_t *rendcirc) {
if (!cpath) {
cpath = rendcirc->build_state->pending_final_cpath =
tor_malloc_zero(sizeof(crypt_path_t));
+ cpath->magic = CRYPT_PATH_MAGIC;
if (!(cpath->handshake_state = crypto_dh_new())) {
log_fn(LOG_WARN, "Couldn't allocate DH");
goto err;