summaryrefslogtreecommitdiff
path: root/src/or
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-04-06 20:45:44 +0000
committerNick Mathewson <nickm@torproject.org>2004-04-06 20:45:44 +0000
commit40a5d6055e0921ec6b9e5000d7b33c4599c6e22c (patch)
tree35e617f3e3b5d1ba9a003e9cb100ad324ef263ce /src/or
parent2446996f973884a4d3949365f6abb67d86f681ea (diff)
downloadtor-40a5d6055e0921ec6b9e5000d7b33c4599c6e22c.tar.gz
tor-40a5d6055e0921ec6b9e5000d7b33c4599c6e22c.zip
Stupid sizeof operator!
svn:r1508
Diffstat (limited to 'src/or')
-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;