diff options
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 2 | ||||
-rw-r--r-- | src/statistics/statistics_api.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 85c84b89d..0cb136b99 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c | |||
@@ -359,7 +359,7 @@ transmit (struct ClientEntry *ce, | |||
359 | 359 | ||
360 | size = strlen (e->subsystem->service) + 1 + | 360 | size = strlen (e->subsystem->service) + 1 + |
361 | strlen (e->name) + 1; | 361 | strlen (e->name) + 1; |
362 | GNUNET_assert (size < GNUNET_SERVER_MAX_MESSAGE_SIZE); | 362 | GNUNET_assert (size < GNUNET_MAX_MESSAGE_SIZE); |
363 | env = GNUNET_MQ_msg_extra (m, | 363 | env = GNUNET_MQ_msg_extra (m, |
364 | size, | 364 | size, |
365 | GNUNET_MESSAGE_TYPE_STATISTICS_VALUE); | 365 | GNUNET_MESSAGE_TYPE_STATISTICS_VALUE); |
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; |