- fixed malloc size
authorFlorian Dold <florian.dold@gmail.com>
Fri, 19 Jul 2013 11:12:16 +0000 (11:12 +0000)
committerFlorian Dold <florian.dold@gmail.com>
Fri, 19 Jul 2013 11:12:16 +0000 (11:12 +0000)
src/set/ibf.c

index e3c5be59a6341aaeca4a20c288a73fdd09f83bf4..45b852f781c91ca6f07db66958e73164a3bd380b 100644 (file)
@@ -80,8 +80,8 @@ ibf_create (uint32_t size, uint8_t hash_num)
 
   ibf = GNUNET_malloc (sizeof (struct InvertibleBloomFilter));
   ibf->count = GNUNET_malloc (size * sizeof (uint8_t));
-  ibf->key_sum = GNUNET_malloc (size * sizeof (struct GNUNET_HashCode));
-  ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct GNUNET_HashCode));
+  ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key));
+  ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash));
   ibf->size = size;
   ibf->hash_num = hash_num;