datastore = GNUNET_strdup ("N/A");
#endif
- LOG (GNUNET_ERROR_TYPE_INFO, " DHT GET result for %s (%s) at %s\n",
+ LOG (GNUNET_ERROR_TYPE_INFO, " DHT GET result for %s (%s) at %s\n",
GNUNET_h2s (key), ctx->info->description, datastore);
GNUNET_free (datastore);
memcpy (copy, data, size);
GNUNET_break (
GNUNET_OK ==
- GNUNET_CONTAINER_multihashmap_put (info->dht_get_results, key, copy,
+ GNUNET_CONTAINER_multihashmap_put (info->dht_get_results,
+ &((struct RegexBlock *)copy)->key, copy,
GNUNET_CONTAINER_MULTIHASHMAPOPTION_MULTIPLE)
);
len = ntohl (block->n_proof);
if (GNUNET_YES ==
GNUNET_CONTAINER_multihashmap_contains (info->dht_get_handles, hash))
{
- LOG (GNUNET_ERROR_TYPE_DEBUG, "* GET running, END\n");
+ LOG (GNUNET_ERROR_TYPE_DEBUG, "* GET for %s running, END\n",
+ GNUNET_h2s (hash));
GNUNET_CONTAINER_multihashmap_get_multiple (info->dht_get_results,
hash,
®ex_result_iterator,
h->callback = callback;
h->callback_cls = callback_cls;
h->stats = stats;
- h->dht_get_handles = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_YES);
+ h->dht_get_handles = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_NO);
h->dht_get_results = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_YES);
/* Initialize context */
-/* end of regex_dht.c */
\ No newline at end of file
+/* end of regex_dht.c */