diff options
author | Florian Dold <florian.dold@gmail.com> | 2013-07-19 11:12:16 +0000 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2013-07-19 11:12:16 +0000 |
commit | 1db00201b20563df2ae1503693486b02b87eb152 (patch) | |
tree | c51738c2c9e59934ebafd15de52a42b707a25f2f /src/set/ibf.c | |
parent | eea7aa900971469317271dfa56cf04509f5a0bad (diff) | |
download | gnunet-1db00201b20563df2ae1503693486b02b87eb152.tar.gz gnunet-1db00201b20563df2ae1503693486b02b87eb152.zip |
- fixed malloc size
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r-- | src/set/ibf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/set/ibf.c b/src/set/ibf.c index e3c5be59a..45b852f78 100644 --- a/src/set/ibf.c +++ b/src/set/ibf.c | |||
@@ -80,8 +80,8 @@ ibf_create (uint32_t size, uint8_t hash_num) | |||
80 | 80 | ||
81 | ibf = GNUNET_malloc (sizeof (struct InvertibleBloomFilter)); | 81 | ibf = GNUNET_malloc (sizeof (struct InvertibleBloomFilter)); |
82 | ibf->count = GNUNET_malloc (size * sizeof (uint8_t)); | 82 | ibf->count = GNUNET_malloc (size * sizeof (uint8_t)); |
83 | ibf->key_sum = GNUNET_malloc (size * sizeof (struct GNUNET_HashCode)); | 83 | ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key)); |
84 | ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct GNUNET_HashCode)); | 84 | ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash)); |
85 | ibf->size = size; | 85 | ibf->size = size; |
86 | ibf->hash_num = hash_num; | 86 | ibf->hash_num = hash_num; |
87 | 87 | ||