diff options
Diffstat (limited to 'src/set/ibf.c')
-rw-r--r-- | src/set/ibf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/set/ibf.c b/src/set/ibf.c index 739b97339..383ce3daf 100644 --- a/src/set/ibf.c +++ b/src/set/ibf.c | |||
@@ -280,6 +280,7 @@ ibf_read_slice (const void *buf, uint32_t start, uint32_t count, struct Invertib | |||
280 | struct IBF_KeyHash *key_hash_src; | 280 | struct IBF_KeyHash *key_hash_src; |
281 | struct IBF_Count *count_src; | 281 | struct IBF_Count *count_src; |
282 | 282 | ||
283 | GNUNET_assert (count > 0); | ||
283 | GNUNET_assert (start + count <= ibf->size); | 284 | GNUNET_assert (start + count <= ibf->size); |
284 | 285 | ||
285 | /* copy keys */ | 286 | /* copy keys */ |