diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-15 17:59:10 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-15 17:59:10 +0000 |
commit | e8517d7bc10209ed0fcda736de9fab6a6dadf107 (patch) | |
tree | ce275c7a2a4412a64e6d5621d9680b30cd721824 /src/statistics | |
parent | df3599e4d09803862841e54f6a5dec1e6ca163ae (diff) | |
download | gnunet-e8517d7bc10209ed0fcda736de9fab6a6dadf107.tar.gz gnunet-e8517d7bc10209ed0fcda736de9fab6a6dadf107.zip |
fix
Diffstat (limited to 'src/statistics')
-rw-r--r-- | src/statistics/gnunet-service-statistics.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/statistics/gnunet-service-statistics.c b/src/statistics/gnunet-service-statistics.c index 91c62a64b..92f79cc91 100644 --- a/src/statistics/gnunet-service-statistics.c +++ b/src/statistics/gnunet-service-statistics.c | |||
@@ -369,7 +369,8 @@ handle_get (void *cls, | |||
369 | struct StatsEntry *pos; | 369 | struct StatsEntry *pos; |
370 | size_t size; | 370 | size_t size; |
371 | 371 | ||
372 | make_client_entry (client); | 372 | if (client != NULL) |
373 | make_client_entry (client); | ||
373 | size = ntohs (message->size) - sizeof (struct GNUNET_MessageHeader); | 374 | size = ntohs (message->size) - sizeof (struct GNUNET_MessageHeader); |
374 | if (size != GNUNET_STRINGS_buffer_tokenize ((const char *) &message[1], | 375 | if (size != GNUNET_STRINGS_buffer_tokenize ((const char *) &message[1], |
375 | size, 2, &service, &name)) | 376 | size, 2, &service, &name)) |
@@ -452,7 +453,8 @@ handle_set (void *cls, | |||
452 | int64_t delta; | 453 | int64_t delta; |
453 | int changed; | 454 | int changed; |
454 | 455 | ||
455 | make_client_entry (client); | 456 | if (client != NULL) |
457 | make_client_entry (client); | ||
456 | msize = ntohs (message->size); | 458 | msize = ntohs (message->size); |
457 | if (msize < sizeof (struct GNUNET_STATISTICS_SetMessage)) | 459 | if (msize < sizeof (struct GNUNET_STATISTICS_SetMessage)) |
458 | { | 460 | { |