fix
authorChristian Grothoff <christian@grothoff.org>
Tue, 16 Mar 2010 18:09:13 +0000 (18:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 16 Mar 2010 18:09:13 +0000 (18:09 +0000)
src/transport/gnunet-service-transport.c

index a2c90a4c46a84d50f01d90a5f3f6c8c835af7d04..f8340a2586c4c32af9b326d0ca556af612f66db8 100644 (file)
@@ -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,