diff options
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r-- | src/set/ibf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/set/ibf.c b/src/set/ibf.c index 83cbafc65..19d15a5b2 100644 --- a/src/set/ibf.c +++ b/src/set/ibf.c | |||
@@ -76,12 +76,12 @@ ibf_create (uint32_t size, uint8_t hash_num) | |||
76 | { | 76 | { |
77 | struct InvertibleBloomFilter *ibf; | 77 | struct InvertibleBloomFilter *ibf; |
78 | 78 | ||
79 | /* TODO: use malloc_large */ | 79 | GNUNET_assert (0 != size); |
80 | 80 | ||
81 | ibf = GNUNET_new (struct InvertibleBloomFilter); | 81 | ibf = GNUNET_new (struct InvertibleBloomFilter); |
82 | ibf->count = GNUNET_malloc (size * sizeof (uint8_t)); | 82 | ibf->count = GNUNET_malloc_large (size * sizeof (uint8_t)); |
83 | ibf->key_sum = GNUNET_malloc (size * sizeof (struct IBF_Key)); | 83 | ibf->key_sum = GNUNET_malloc_large (size * sizeof (struct IBF_Key)); |
84 | ibf->key_hash_sum = GNUNET_malloc (size * sizeof (struct IBF_KeyHash)); | 84 | ibf->key_hash_sum = GNUNET_malloc_large (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 | ||