-fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 23 Apr 2012 05:23:13 +0000 (05:23 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 23 Apr 2012 05:23:13 +0000 (05:23 +0000)
src/core/test_core_quota_compliance.c
src/dht/gnunet-service-dht_neighbours.c

index 7c16531d82b1e80c386c8dd058d63b6d1884c618..13a837cebdef95e69646f5f5ff9eedcc0e747e00 100644 (file)
@@ -126,6 +126,8 @@ terminate_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
   struct GNUNET_CORE_Handle *ch;
 
   err_task = GNUNET_SCHEDULER_NO_TASK;
+  GNUNET_STATISTICS_destroy (p1.stats, GNUNET_NO);
+  GNUNET_STATISTICS_destroy (p2.stats, GNUNET_NO);
   GNUNET_TRANSPORT_get_hello_cancel (p2.ghh);
   GNUNET_TRANSPORT_get_hello_cancel (p1.ghh);
   if (p1.nth != NULL)
index 57c06ea580d9b75bd7fde64dd68755804ee057bb..3d148270d35301584a87a55fc2471e9e4c3c16c2 100644 (file)
@@ -1555,7 +1555,7 @@ handle_dht_p2p_put (void *cls, const struct GNUNET_PeerIdentity *peer,
     break;
   }
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "PUT for `%s' from %s\n",
-              GNUNET_h2s (&put->key), GNUNET_i2s (&peer->hashPubKey));
+              GNUNET_h2s (&put->key), GNUNET_i2s (peer));
   bf = GNUNET_CONTAINER_bloomfilter_init (put->bloomfilter, DHT_BLOOM_SIZE,
                                           GNUNET_CONSTANTS_BLOOMFILTER_K);
   GNUNET_break_op (GNUNET_YES ==