From 084cb3e09007ef50a3d9bd29514c8ec455249633 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 10 Jul 2013 01:26:04 +0000 Subject: [PATCH] - full message struct initialization --- src/mesh/mesh_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 0b44eabdc..09cf67163 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c @@ -751,6 +751,7 @@ do_reconnect (struct GNUNET_MESH_Handle *h) tmsg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_CREATE); tmsg.header.size = htons (sizeof (struct GNUNET_MESH_TunnelMessage)); tmsg.tunnel_id = htonl (t->tid); + tmsg.port = htonl (t->port); GNUNET_PEER_resolve (t->peer, &tmsg.peer); options = 0; @@ -1489,6 +1490,7 @@ GNUNET_MESH_tunnel_create (struct GNUNET_MESH_Handle *h, msg.tunnel_id = htonl (t->tid); msg.port = htonl (port); msg.peer = *peer; + msg.options = 0; t->last_ack_sent = 0; send_packet (h, &msg.header, t); return t; -- 2.25.1