gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13017 - gnunet/src/block


From: gnunet
Subject: [GNUnet-SVN] r13017 - gnunet/src/block
Date: Sat, 18 Sep 2010 06:45:45 +0200

Author: grothoff
Date: 2010-09-18 06:45:45 +0200 (Sat, 18 Sep 2010)
New Revision: 13017

Modified:
   gnunet/src/block/plugin_block_fs.c
Log:
fix

Modified: gnunet/src/block/plugin_block_fs.c
===================================================================
--- gnunet/src/block/plugin_block_fs.c  2010-09-18 04:36:48 UTC (rev 13016)
+++ gnunet/src/block/plugin_block_fs.c  2010-09-18 04:45:45 UTC (rev 13017)
@@ -120,8 +120,11 @@
       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),




reply via email to

[Prev in Thread] Current Thread [Next in Thread]