From: Christian Grothoff Date: Tue, 16 Mar 2010 18:09:13 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22437 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2b2d741c2e8115f18d89b2efbc80abc70ea70905;p=oweals%2Fgnunet.git fix --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index a2c90a4c4..f8340a258 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -2168,7 +2168,6 @@ send_periodic_ping (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) { struct ForeignAddressList *peer_address = cls; - struct GNUNET_PeerIdentity id; struct TransportPlugin *tp; struct ValidationEntry *va; struct NeighbourList *neighbour; @@ -2240,7 +2239,7 @@ send_periodic_ping (void *cls, ping.challenge = htonl(va->challenge); ping.header.size = htons(sizeof(struct TransportPingMessage)); ping.header.type = htons(GNUNET_MESSAGE_TYPE_TRANSPORT_PING); - memcpy(&ping.target, &id, sizeof(struct GNUNET_PeerIdentity)); + memcpy(&ping.target, &neighbour->id, sizeof(struct GNUNET_PeerIdentity)); memcpy(message_buf, our_hello, hello_size); memcpy(&message_buf[hello_size], &ping,