fix
authorChristian Grothoff <christian@grothoff.org>
Sun, 15 Aug 2010 17:59:10 +0000 (17:59 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 15 Aug 2010 17:59:10 +0000 (17:59 +0000)
src/statistics/gnunet-service-statistics.c

index 91c62a64b3488a6098f29e24799a47c86bc23c70..92f79cc914b3a492b600fd89b6ea14f6ce733ee1 100644 (file)
@@ -369,7 +369,8 @@ handle_get (void *cls,
   struct StatsEntry *pos;
   size_t size;
 
-  make_client_entry (client);
+  if (client != NULL)
+    make_client_entry (client);
   size = ntohs (message->size) - sizeof (struct GNUNET_MessageHeader);
   if (size != GNUNET_STRINGS_buffer_tokenize ((const char *) &message[1],
                                               size, 2, &service, &name))
@@ -452,7 +453,8 @@ handle_set (void *cls,
   int64_t delta;
   int changed;
 
-  make_client_entry (client);
+  if (client != NULL)
+    make_client_entry (client);
   msize = ntohs (message->size);
   if (msize < sizeof (struct GNUNET_STATISTICS_SetMessage))
     {