From bfb60176a2b3861aea7daa47b81e0f26ae3377f9 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Tue, 25 Jun 2013 13:38:25 +0000 Subject: [PATCH] - avoid valgrind uninitialized memory warning --- src/mesh/gnunet-service-mesh-new.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesh/gnunet-service-mesh-new.c b/src/mesh/gnunet-service-mesh-new.c index 5d6a1cdc8..063469342 100644 --- a/src/mesh/gnunet-service-mesh-new.c +++ b/src/mesh/gnunet-service-mesh-new.c @@ -977,6 +977,8 @@ send_client_tunnel_destroy (struct MeshClient *c, struct MeshTunnel *t) msg.header.size = htons (sizeof (msg)); 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)); GNUNET_SERVER_notification_context_unicast (nc, c->handle, &msg.header, GNUNET_NO); } -- 2.25.1