aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dht/gnunet-service-dht.c')
-rw-r--r--src/dht/gnunet-service-dht.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dht/gnunet-service-dht.c b/src/dht/gnunet-service-dht.c
index d722f3335..0ba700f9b 100644
--- a/src/dht/gnunet-service-dht.c
+++ b/src/dht/gnunet-service-dht.c
@@ -2380,7 +2380,7 @@ remove_recent_find_peer(void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc
2380{ 2380{
2381 GNUNET_HashCode *key = cls; 2381 GNUNET_HashCode *key = cls;
2382 2382
2383 GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(recent_find_peer_requests, key, key)); 2383 GNUNET_assert (GNUNET_YES == GNUNET_CONTAINER_multihashmap_remove(recent_find_peer_requests, key, NULL));
2384 GNUNET_free (key); 2384 GNUNET_free (key);
2385} 2385}
2386 2386
@@ -2509,6 +2509,7 @@ handle_dht_find_peer (void *cls,
2509 &message_context->key, NULL, 2509 &message_context->key, NULL,
2510 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY)) 2510 GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY))
2511 { 2511 {
2512 GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "Adding recent remove task for key `%s`!\n", GNUNET_h2s(&message_context->key));
2512 /* Only add a task if there wasn't one for this key already! */ 2513 /* Only add a task if there wasn't one for this key already! */
2513 GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30), 2514 GNUNET_SCHEDULER_add_delayed (sched, GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 30),
2514 &remove_recent_find_peer, recent_hash); 2515 &remove_recent_find_peer, recent_hash);