Browse Source

Stupid sizeof operator!

svn:r1508
Nick Mathewson 21 years ago
parent
commit
40a5d6055e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/or/onion.c

+ 1 - 1
src/or/onion.c

@@ -125,7 +125,7 @@ int onionskin_answer(circuit_t *circ, unsigned char *payload, unsigned char *key
   cell_t cell;
   cell_t cell;
   crypt_path_t *tmp_cpath;
   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));
   memset(&cell, 0, sizeof(cell_t));
   cell.command = CELL_CREATED;
   cell.command = CELL_CREATED;