fix
authorChristian Grothoff <christian@grothoff.org>
Thu, 18 Mar 2010 10:39:12 +0000 (10:39 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 18 Mar 2010 10:39:12 +0000 (10:39 +0000)
src/fs/gnunet-service-fs.c

index 4b2ce3a9d4e3f0d04172d6d60e6862b5edafa5e7..19e64d7d25855277f71195da55022c0a37cdcb46 100644 (file)
@@ -1590,9 +1590,9 @@ check_kblock (const struct KBlock *kb,
       return GNUNET_SYSERR;
     }
   if (dsize - sizeof (struct KBlock) !=
-      ntohs (kb->purpose.size) 
+      ntohl (kb->purpose.size) 
       - sizeof (struct GNUNET_CRYPTO_RsaSignaturePurpose) 
-      - sizeof(struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) ) 
+      - sizeof (struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded) ) 
     {
       GNUNET_break_op (0);
       return GNUNET_SYSERR;