commit c9491449aeaaea970d628801586cde093fbbadf6
parent b243b49faa6bbbaf5252d6dad721a3b08c3dd154
Author: Bart Polot <bart@net.in.tum.de>
Date: Tue, 16 Jul 2013 12:07:40 +0000
- uninitialized memory on the network
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
@@ -1067,7 +1067,8 @@ send_client_tunnel_destroy (struct MeshClient *c, struct MeshTunnel *t)
msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_TUNNEL_DESTROY);
msg.tunnel_id = htonl (t->local_tid_dest);
msg.port = htonl (0);
- memset(&msg.peer, 0, sizeof (msg.peer));
+ memset (&msg.peer, 0, sizeof (msg.peer));
+ msg.opt = htonl (0);
GNUNET_SERVER_notification_context_unicast (nc, c->handle,
&msg.header, GNUNET_NO);
}