diff options
Diffstat (limited to 'src/namecache/namecache_api.c')
-rw-r--r-- | src/namecache/namecache_api.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/namecache/namecache_api.c b/src/namecache/namecache_api.c index 2bb233da1..2a60a2813 100644 --- a/src/namecache/namecache_api.c +++ b/src/namecache/namecache_api.c | |||
@@ -483,9 +483,11 @@ GNUNET_NAMECACHE_block_cache (struct GNUNET_NAMECACHE_Handle *h, | |||
483 | 483 | ||
484 | if (NULL == h->mq) | 484 | if (NULL == h->mq) |
485 | return NULL; | 485 | return NULL; |
486 | blen = ntohl (block->purpose.size) | 486 | blen = ntohl (block->purpose.size); |
487 | - sizeof (struct GNUNET_TIME_AbsoluteNBO) | 487 | GNUNET_assert (blen > (sizeof (struct GNUNET_TIME_AbsoluteNBO) + |
488 | - sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose); | 488 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose))); |
489 | blen -= (sizeof (struct GNUNET_TIME_AbsoluteNBO) + | ||
490 | sizeof (struct GNUNET_CRYPTO_EccSignaturePurpose)); | ||
489 | rid = get_op_id (h); | 491 | rid = get_op_id (h); |
490 | qe = GNUNET_new (struct GNUNET_NAMECACHE_QueueEntry); | 492 | qe = GNUNET_new (struct GNUNET_NAMECACHE_QueueEntry); |
491 | qe->nsh = h; | 493 | qe->nsh = h; |