[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r29685 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r29685 - gnunet/src/namestore |
Date: |
Sun, 29 Sep 2013 17:23:00 +0200 |
Author: grothoff
Date: 2013-09-29 17:23:00 +0200 (Sun, 29 Sep 2013)
New Revision: 29685
Modified:
gnunet/src/namestore/namestore_api.c
Log:
-fix block size calculation
Modified: gnunet/src/namestore/namestore_api.c
===================================================================
--- gnunet/src/namestore/namestore_api.c 2013-09-29 15:19:13 UTC (rev
29684)
+++ gnunet/src/namestore/namestore_api.c 2013-09-29 15:23:00 UTC (rev
29685)
@@ -305,7 +305,7 @@
/**
- * Handle an incoming message of type
'GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE'
+ * Handle an incoming message of type
#GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE
*
* @param qe the respective entry in the message queue
* @param msg the message we received
@@ -985,7 +985,9 @@
size_t msg_size;
GNUNET_assert (NULL != h);
- blen = ntohl (block->purpose.size) - sizeof (struct GNUNET_TIME_AbsoluteNBO);
+ blen = ntohl (block->purpose.size)
+ - sizeof (struct GNUNET_TIME_AbsoluteNBO)
+ - sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose);
rid = get_op_id (h);
qe = GNUNET_new (struct GNUNET_NAMESTORE_QueueEntry);
qe->nsh = h;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r29685 - gnunet/src/namestore,
gnunet <=