From: Florian Dold Date: Wed, 10 Jul 2013 01:26:04 +0000 (+0000) Subject: - full message struct initialization X-Git-Tag: initial-import-from-subversion-38251~8432 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=084cb3e09007ef50a3d9bd29514c8ec455249633;p=oweals%2Fgnunet.git - full message struct initialization --- 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;