diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-09-18 04:45:45 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-09-18 04:45:45 +0000 |
commit | 89e6dd970f89ee558b301774d5b77cd522eccf55 (patch) | |
tree | bc5cd7cb2cb391738f6bb2224e1f4a4b5f9cb2b4 /src/block | |
parent | 4346e3b1d6f830c8862fda17262fe0a41359be10 (diff) | |
download | gnunet-89e6dd970f89ee558b301774d5b77cd522eccf55.tar.gz gnunet-89e6dd970f89ee558b301774d5b77cd522eccf55.zip |
fix
Diffstat (limited to 'src/block')
-rw-r--r-- | src/block/plugin_block_fs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/block/plugin_block_fs.c b/src/block/plugin_block_fs.c index a5219b706..3ad15a0c6 100644 --- a/src/block/plugin_block_fs.c +++ b/src/block/plugin_block_fs.c | |||
@@ -120,8 +120,11 @@ block_plugin_fs_evaluate (void *cls, | |||
120 | if (reply_block == NULL) | 120 | if (reply_block == NULL) |
121 | return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; | 121 | return GNUNET_BLOCK_EVALUATION_REQUEST_VALID; |
122 | nsid = xquery; | 122 | nsid = xquery; |
123 | if (reply_block_size < sizeof (struct NBlock)) | 123 | if (reply_block_size < sizeof (struct SBlock)) |
124 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | 124 | { |
125 | GNUNET_break_op (0); | ||
126 | return GNUNET_BLOCK_EVALUATION_RESULT_INVALID; | ||
127 | } | ||
125 | sb = reply_block; | 128 | sb = reply_block; |
126 | GNUNET_CRYPTO_hash (&sb->subspace, | 129 | GNUNET_CRYPTO_hash (&sb->subspace, |
127 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), | 130 | sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded), |