aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/datastore_api.c4
-rw-r--r--src/datastore/gnunet-service-datastore.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c
index ef7cd7532..c677654aa 100644
--- a/src/datastore/datastore_api.c
+++ b/src/datastore/datastore_api.c
@@ -1001,7 +1001,7 @@ GNUNET_DATASTORE_put (struct GNUNET_DATASTORE_Handle *h,
1001 struct DataMessage *dm; 1001 struct DataMessage *dm;
1002 union QueueContext qc; 1002 union QueueContext qc;
1003 1003
1004 if (size + sizeof (*dm) >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1004 if (size + sizeof (*dm) >= GNUNET_MAX_MESSAGE_SIZE)
1005 { 1005 {
1006 GNUNET_break (0); 1006 GNUNET_break (0);
1007 return NULL; 1007 return NULL;
@@ -1212,7 +1212,7 @@ GNUNET_DATASTORE_remove (struct GNUNET_DATASTORE_Handle *h,
1212 struct GNUNET_MQ_Envelope *env; 1212 struct GNUNET_MQ_Envelope *env;
1213 union QueueContext qc; 1213 union QueueContext qc;
1214 1214
1215 if (sizeof (*dm) + size >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1215 if (sizeof (*dm) + size >= GNUNET_MAX_MESSAGE_SIZE)
1216 { 1216 {
1217 GNUNET_break (0); 1217 GNUNET_break (0);
1218 return NULL; 1218 return NULL;
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c
index bde2843a6..dabec3d6d 100644
--- a/src/datastore/gnunet-service-datastore.c
+++ b/src/datastore/gnunet-service-datastore.c
@@ -529,7 +529,7 @@ transmit_item (void *cls,
529 return GNUNET_OK; 529 return GNUNET_OK;
530 } 530 }
531 GNUNET_assert (sizeof (struct DataMessage) + size < 531 GNUNET_assert (sizeof (struct DataMessage) + size <
532 GNUNET_SERVER_MAX_MESSAGE_SIZE); 532 GNUNET_MAX_MESSAGE_SIZE);
533 env = GNUNET_MQ_msg_extra (dm, 533 env = GNUNET_MQ_msg_extra (dm,
534 size, 534 size,
535 GNUNET_MESSAGE_TYPE_DATASTORE_DATA); 535 GNUNET_MESSAGE_TYPE_DATASTORE_DATA);