Bug: fill in the peer-field of the tunnel
authorPhilipp Tölke <toelke@in.tum.de>
Tue, 2 Aug 2011 07:34:48 +0000 (07:34 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Tue, 2 Aug 2011 07:34:48 +0000 (07:34 +0000)
src/mesh/mesh_api.c

index 5db0229ef16e938d805cfee75b052eb44c2dafa0..24ee4c5ae72f5494defe98e88e8c1064f53e6396 100644 (file)
@@ -394,6 +394,7 @@ receive_hello (void *cls,
                                                  tail,
                                                  handle->established_tunnels.
                                                  tail, tunnel);
+              memcpy(&tunnel->tunnel.peer, other, sizeof(struct GNUNET_PeerIdentity));
               tunnel->tunnel.connect_handler (tunnel->tunnel.handler_cls,
                                               &tunnel->tunnel.peer, atsi);
               GNUNET_SCHEDULER_add_now (send_end_connect, tunnel);