aboutsummaryrefslogtreecommitdiff
path: root/src/statistics/statistics_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/statistics/statistics_api.c')
-rw-r--r--src/statistics/statistics_api.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/statistics/statistics_api.c b/src/statistics/statistics_api.c
index ad4453b2a..9d04e854f 100644
--- a/src/statistics/statistics_api.c
+++ b/src/statistics/statistics_api.c
@@ -349,7 +349,7 @@ schedule_watch_request (struct GNUNET_STATISTICS_Handle *h,
349 slen = strlen (watch->subsystem) + 1; 349 slen = strlen (watch->subsystem) + 1;
350 nlen = strlen (watch->name) + 1; 350 nlen = strlen (watch->name) + 1;
351 nsize = sizeof (struct GNUNET_MessageHeader) + slen + nlen; 351 nsize = sizeof (struct GNUNET_MessageHeader) + slen + nlen;
352 if (nsize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 352 if (nsize >= GNUNET_MAX_MESSAGE_SIZE)
353 { 353 {
354 GNUNET_break (0); 354 GNUNET_break (0);
355 return; 355 return;
@@ -1098,7 +1098,7 @@ GNUNET_STATISTICS_get (struct GNUNET_STATISTICS_Handle *handle,
1098 slen1 = strlen (subsystem) + 1; 1098 slen1 = strlen (subsystem) + 1;
1099 slen2 = strlen (name) + 1; 1099 slen2 = strlen (name) + 1;
1100 GNUNET_assert (slen1 + slen2 + sizeof (struct GNUNET_MessageHeader) < 1100 GNUNET_assert (slen1 + slen2 + sizeof (struct GNUNET_MessageHeader) <
1101 GNUNET_SERVER_MAX_MESSAGE_SIZE); 1101 GNUNET_MAX_MESSAGE_SIZE);
1102 ai = GNUNET_new (struct GNUNET_STATISTICS_GetHandle); 1102 ai = GNUNET_new (struct GNUNET_STATISTICS_GetHandle);
1103 ai->sh = handle; 1103 ai->sh = handle;
1104 ai->subsystem = GNUNET_strdup (subsystem); 1104 ai->subsystem = GNUNET_strdup (subsystem);
@@ -1246,7 +1246,7 @@ add_setter_action (struct GNUNET_STATISTICS_Handle *h,
1246 slen = strlen (h->subsystem) + 1; 1246 slen = strlen (h->subsystem) + 1;
1247 nlen = strlen (name) + 1; 1247 nlen = strlen (name) + 1;
1248 nsize = sizeof (struct GNUNET_STATISTICS_SetMessage) + slen + nlen; 1248 nsize = sizeof (struct GNUNET_STATISTICS_SetMessage) + slen + nlen;
1249 if (nsize >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1249 if (nsize >= GNUNET_MAX_MESSAGE_SIZE)
1250 { 1250 {
1251 GNUNET_break (0); 1251 GNUNET_break (0);
1252 return; 1252 return;