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;