From 910ea25c0ee8dce26adfb9553f9664b088330ef6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 6 Apr 2004 20:45:44 +0000 Subject: [PATCH] Stupid sizeof operator! svn:r1508 --- trunk/src/or/onion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/or/onion.c b/trunk/src/or/onion.c index 3846eed6d9..6ff58ee375 100644 --- a/trunk/src/or/onion.c +++ b/trunk/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;