commit 05f3d409696cb2bb24be096b861a5ba493b99ba6
parent 1bac5c7c1ea598e60bd4e30917e24d7ec178c99d
Author: Bart Polot <bart@net.in.tum.de>
Date: Wed, 5 Feb 2014 17:24:32 +0000
- fix search, use target ID, not own
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesh/gnunet-service-mesh_dht.c b/src/mesh/gnunet-service-mesh_dht.c
@@ -384,7 +384,7 @@ GMD_search (const struct GNUNET_PeerIdentity *peer_id,
LOG (GNUNET_ERROR_TYPE_DEBUG,
" Starting DHT GET for peer %s\n", GNUNET_i2s (peer_id));
memset (&phash, 0, sizeof (phash));
- memcpy (&phash, &my_full_id, sizeof (my_full_id));
+ memcpy (&phash, peer_id, sizeof (*peer_id));
h = GNUNET_new (struct GMD_search_handle);
h->peer_id = GNUNET_PEER_intern (peer_id);
h->callback = callback;