Explorar o código

Stupid sizeof operator!

svn:r1508
Nick Mathewson %!s(int64=21) %!d(string=hai) anos
pai
achega
40a5d6055e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;
   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;