fix uninitialized memory in network send
authorMatthias Wachs <wachs@net.in.tum.de>
Thu, 5 Dec 2013 09:06:25 +0000 (09:06 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Thu, 5 Dec 2013 09:06:25 +0000 (09:06 +0000)
src/dv/gnunet-service-dv.c

index 20202a12337153f0ffdbd64b4dd92f460074658b..37a92a278c6fad980e7d9c564c643a80567bede6 100644 (file)
@@ -1966,6 +1966,7 @@ add_route (void *cls,
   struct Route *route = value;
   struct GNUNET_DV_ConnectMessage cm;
 
+  memset (&cm, 0, sizeof (cm));
   cm.header.size = htons (sizeof (cm));
   cm.header.type = htons (GNUNET_MESSAGE_TYPE_DV_CONNECT);
   cm.distance = htonl (route->target.distance);