aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-09-09 11:43:12 +0000
committerChristian Grothoff <christian@grothoff.org>2010-09-09 11:43:12 +0000
commit6ad3e6f4977721c38ecaf0602f8cb67cbd6cf949 (patch)
treebfe19f9fe76aec03dbe19c4f1b41d34c9832c1dc /src/datastore
parentc74fc426bdc67c3a5a3d334b00048a570ea7965d (diff)
downloadgnunet-6ad3e6f4977721c38ecaf0602f8cb67cbd6cf949.tar.gz
gnunet-6ad3e6f4977721c38ecaf0602f8cb67cbd6cf949.zip
fix present check for on-demand blocks
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/gnunet-service-datastore.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c
index 01778b1b7..3e9e2e480 100644
--- a/src/datastore/gnunet-service-datastore.c
+++ b/src/datastore/gnunet-service-datastore.c
@@ -1038,10 +1038,12 @@ check_present (void *cls,
1038 GNUNET_free (pc); 1038 GNUNET_free (pc);
1039 return GNUNET_SYSERR; 1039 return GNUNET_SYSERR;
1040 } 1040 }
1041 if ( (size == ntohl(dm->size)) && 1041 if ( (GNUNET_BLOCK_TYPE_DBLOCK == type) ||
1042 (0 == memcmp (&dm[1], 1042 (GNUNET_BLOCK_TYPE_IBLOCK == type) ||
1043 data, 1043 ( (size == ntohl(dm->size)) &&
1044 size)) ) 1044 (0 == memcmp (&dm[1],
1045 data,
1046 size)) ) )
1045 { 1047 {
1046 pc->is_present = GNUNET_YES; 1048 pc->is_present = GNUNET_YES;
1047 plugin->api->next_request (next_cls, GNUNET_YES); 1049 plugin->api->next_request (next_cls, GNUNET_YES);