diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-06-25 14:02:01 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-06-25 14:02:01 +0200 |
commit | fa7f0a3a47b4f35270b83e0835b0632e8ee5f00a (patch) | |
tree | 7385361d0262b75fe54f62ca808e9eeda0964238 /src/block | |
parent | 599c31dff16d2e85898cd6d69c65e338e2c54447 (diff) | |
download | gnunet-fa7f0a3a47b4f35270b83e0835b0632e8ee5f00a.tar.gz gnunet-fa7f0a3a47b4f35270b83e0835b0632e8ee5f00a.zip |
BF bugfix: include mutator in size
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/bg_bf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/block/bg_bf.c b/src/block/bg_bf.c index 520d750aa..b79ea3c55 100644 --- a/src/block/bg_bf.c +++ b/src/block/bg_bf.c | |||
@@ -82,7 +82,7 @@ bf_group_serialize_cb (struct GNUNET_BLOCK_Group *bg, | |||
82 | &gi->bf_mutator, | 82 | &gi->bf_mutator, |
83 | sizeof (uint32_t)); | 83 | sizeof (uint32_t)); |
84 | *raw_data = raw; | 84 | *raw_data = raw; |
85 | *raw_data_size = gi->bf_size; | 85 | *raw_data_size = gi->bf_size + sizeof (uint32_t); |
86 | return GNUNET_OK; | 86 | return GNUNET_OK; |
87 | } | 87 | } |
88 | 88 | ||
@@ -228,7 +228,7 @@ GNUNET_BLOCK_GROUP_bf_create (void *cls, | |||
228 | * @return #GNUNET_YES if @a hc is (likely) a duplicate | 228 | * @return #GNUNET_YES if @a hc is (likely) a duplicate |
229 | * #GNUNET_NO if @a hc was definitively not in @bg (but now is) | 229 | * #GNUNET_NO if @a hc was definitively not in @bg (but now is) |
230 | */ | 230 | */ |
231 | int | 231 | enum GNUNET_GenericReturnValue |
232 | GNUNET_BLOCK_GROUP_bf_test_and_set (struct GNUNET_BLOCK_Group *bg, | 232 | GNUNET_BLOCK_GROUP_bf_test_and_set (struct GNUNET_BLOCK_Group *bg, |
233 | const struct GNUNET_HashCode *hc) | 233 | const struct GNUNET_HashCode *hc) |
234 | { | 234 | { |