diff options
Diffstat (limited to 'src/fs/plugin_block_fs.c')
-rw-r--r-- | src/fs/plugin_block_fs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fs/plugin_block_fs.c b/src/fs/plugin_block_fs.c index 0df434a34..43380b3b6 100644 --- a/src/fs/plugin_block_fs.c +++ b/src/fs/plugin_block_fs.c | |||
@@ -321,13 +321,13 @@ block_plugin_fs_check_block (void *cls, | |||
321 | { | 321 | { |
322 | const struct UBlock *ub; | 322 | const struct UBlock *ub; |
323 | 323 | ||
324 | if (reply_block_size < sizeof(struct UBlock)) | 324 | if (block_size < sizeof(struct UBlock)) |
325 | { | 325 | { |
326 | GNUNET_break_op (0); | 326 | GNUNET_break_op (0); |
327 | return GNUNET_NO; | 327 | return GNUNET_NO; |
328 | } | 328 | } |
329 | ub = reply_block; | 329 | ub = block; |
330 | if (reply_block_size != | 330 | if (block_size != |
331 | ntohl (ub->purpose.size) + | 331 | ntohl (ub->purpose.size) + |
332 | sizeof (struct GNUNET_CRYPTO_EcdsaSignature)) | 332 | sizeof (struct GNUNET_CRYPTO_EcdsaSignature)) |
333 | { | 333 | { |
@@ -390,7 +390,7 @@ block_plugin_fs_check_reply (void *cls, | |||
390 | reply_block_size, | 390 | reply_block_size, |
391 | &chash); | 391 | &chash); |
392 | if (GNUNET_YES == | 392 | if (GNUNET_YES == |
393 | GNUNET_BLOCK_GROUP_bf_test_and_set (bg, | 393 | GNUNET_BLOCK_GROUP_bf_test_and_set (group, |
394 | &chash)) | 394 | &chash)) |
395 | return GNUNET_BLOCK_REPLY_OK_DUPLICATE; | 395 | return GNUNET_BLOCK_REPLY_OK_DUPLICATE; |
396 | return GNUNET_BLOCK_REPLY_OK_MORE; | 396 | return GNUNET_BLOCK_REPLY_OK_MORE; |