[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12940 - gnunet/src/datastore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12940 - gnunet/src/datastore |
Date: |
Thu, 9 Sep 2010 13:43:12 +0200 |
Author: grothoff
Date: 2010-09-09 13:43:12 +0200 (Thu, 09 Sep 2010)
New Revision: 12940
Modified:
gnunet/src/datastore/gnunet-service-datastore.c
Log:
fix present check for on-demand blocks
Modified: gnunet/src/datastore/gnunet-service-datastore.c
===================================================================
--- gnunet/src/datastore/gnunet-service-datastore.c 2010-09-09 11:04:40 UTC
(rev 12939)
+++ gnunet/src/datastore/gnunet-service-datastore.c 2010-09-09 11:43:12 UTC
(rev 12940)
@@ -1038,10 +1038,12 @@
GNUNET_free (pc);
return GNUNET_SYSERR;
}
- if ( (size == ntohl(dm->size)) &&
- (0 == memcmp (&dm[1],
- data,
- size)) )
+ if ( (GNUNET_BLOCK_TYPE_DBLOCK == type) ||
+ (GNUNET_BLOCK_TYPE_IBLOCK == type) ||
+ ( (size == ntohl(dm->size)) &&
+ (0 == memcmp (&dm[1],
+ data,
+ size)) ) )
{
pc->is_present = GNUNET_YES;
plugin->api->next_request (next_cls, GNUNET_YES);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12940 - gnunet/src/datastore,
gnunet <=