summaryrefslogtreecommitdiff
path: root/src/or/onion.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/onion.c')
-rw-r--r--src/or/onion.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/onion.c b/src/or/onion.c
index 3846eed6d9..6ff58ee375 100644
--- a/src/or/onion.c
+++ b/src/or/onion.c
@@ -125,7 +125,7 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key
cell_t cell;
crypt_path_t *tmp_cpath;
- tmp_cpath = tor_malloc_zero(sizeof(tmp_cpath));
+ tmp_cpath = tor_malloc_zero(sizeof(crypt_path_t));
memset(&cell, 0, sizeof(cell_t));
cell.command = CELL_CREATED;