diff options
Diffstat (limited to 'src/statistics/gnunet-service-statistics.c')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 161327421..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); |
@@ -776,7 +776,7 @@ check_watch (void *cls, | |||
776 | size_t size; | 776 | size_t size; |
777 | const char *service; | 777 | const char *service; |
778 | const char *name; | 778 | const char *name; |
779 | 779 | ||
780 | size = ntohs (message->size) - sizeof (struct GNUNET_MessageHeader); | 780 | size = ntohs (message->size) - sizeof (struct GNUNET_MessageHeader); |
781 | if (size != | 781 | if (size != |
782 | GNUNET_STRINGS_buffer_tokenize ((const char *) &message[1], | 782 | GNUNET_STRINGS_buffer_tokenize ((const char *) &message[1], |
@@ -870,7 +870,7 @@ handle_watch (void *cls, | |||
870 | 870 | ||
871 | /** | 871 | /** |
872 | * Handle DISCONNECT-message. Sync to disk and send | 872 | * Handle DISCONNECT-message. Sync to disk and send |
873 | * back a #GNUNET_MESSAGE_TYPE_STATISTICS_DISCONNECT_CONFIRM | 873 | * back a #GNUNET_MESSAGE_TYPE_STATISTICS_DISCONNECT_CONFIRM |
874 | * message. | 874 | * message. |
875 | * | 875 | * |
876 | * @param cls the `struct ClientEntry *` | 876 | * @param cls the `struct ClientEntry *` |
@@ -984,6 +984,7 @@ client_disconnect_cb (void *cls, | |||
984 | } | 984 | } |
985 | } | 985 | } |
986 | } | 986 | } |
987 | GNUNET_free (ce); | ||
987 | if ( (0 == client_count) && | 988 | if ( (0 == client_count) && |
988 | (GNUNET_YES == in_shutdown) ) | 989 | (GNUNET_YES == in_shutdown) ) |
989 | do_shutdown (); | 990 | do_shutdown (); |
@@ -992,7 +993,7 @@ client_disconnect_cb (void *cls, | |||
992 | 993 | ||
993 | /** | 994 | /** |
994 | * We've read a `struct GNUNET_STATISTICS_SetMessage *` from | 995 | * We've read a `struct GNUNET_STATISTICS_SetMessage *` from |
995 | * disk. Check that it is well-formed, and if so pass it to | 996 | * disk. Check that it is well-formed, and if so pass it to |
996 | * the handler for set messages. | 997 | * the handler for set messages. |
997 | * | 998 | * |
998 | * @param cls NULL | 999 | * @param cls NULL |