aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-29 15:23:00 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-29 15:23:00 +0000
commit674ba462dbd5fa945dbbbd5e58c74800936319fb (patch)
treedee15f43c49d49e25e3e704892b99cfbe97d60d1 /src/namestore
parent45cafac2de4b45e205106da2ad48686d3298ad39 (diff)
downloadgnunet-674ba462dbd5fa945dbbbd5e58c74800936319fb.tar.gz
gnunet-674ba462dbd5fa945dbbbd5e58c74800936319fb.zip
-fix block size calculation
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/namestore_api.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/namestore/namestore_api.c b/src/namestore/namestore_api.c
index bc58f3760..f24e090ed 100644
--- a/src/namestore/namestore_api.c
+++ b/src/namestore/namestore_api.c
@@ -305,7 +305,7 @@ handle_lookup_block_response (struct GNUNET_NAMESTORE_QueueEntry *qe,
305 305
306 306
307/** 307/**
308 * Handle an incoming message of type 'GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE' 308 * Handle an incoming message of type #GNUNET_MESSAGE_TYPE_NAMESTORE_BLOCK_CACHE_RESPONSE
309 * 309 *
310 * @param qe the respective entry in the message queue 310 * @param qe the respective entry in the message queue
311 * @param msg the message we received 311 * @param msg the message we received
@@ -985,7 +985,9 @@ GNUNET_NAMESTORE_block_cache (struct GNUNET_NAMESTORE_Handle *h,
985 size_t msg_size; 985 size_t msg_size;
986 986
987 GNUNET_assert (NULL != h); 987 GNUNET_assert (NULL != h);
988 blen = ntohl (block->purpose.size) - sizeof (struct GNUNET_TIME_AbsoluteNBO); 988 blen = ntohl (block->purpose.size)
989 - sizeof (struct GNUNET_TIME_AbsoluteNBO)
990 - sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose);
989 rid = get_op_id (h); 991 rid = get_op_id (h);
990 qe = GNUNET_new (struct GNUNET_NAMESTORE_QueueEntry); 992 qe = GNUNET_new (struct GNUNET_NAMESTORE_QueueEntry);
991 qe->nsh = h; 993 qe->nsh = h;