fix
authorChristian Grothoff <christian@grothoff.org>
Sat, 18 Sep 2010 04:45:45 +0000 (04:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 18 Sep 2010 04:45:45 +0000 (04:45 +0000)
src/block/plugin_block_fs.c

index a5219b706bee7e17c9a4d420e4a7d4cbce18138a..3ad15a0c6632b8f4411e122d671efaeaf47376e0 100644 (file)
@@ -120,8 +120,11 @@ block_plugin_fs_evaluate (void *cls,
       if (reply_block == NULL)
        return GNUNET_BLOCK_EVALUATION_REQUEST_VALID;
       nsid = xquery;
-      if (reply_block_size < sizeof (struct NBlock))
-       return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
+      if (reply_block_size < sizeof (struct SBlock))
+       {
+         GNUNET_break_op (0);
+         return GNUNET_BLOCK_EVALUATION_RESULT_INVALID;
+       }
       sb = reply_block;
       GNUNET_CRYPTO_hash (&sb->subspace,
                          sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded),