Fix coverity #10264
authorBart Polot <bart@net.in.tum.de>
Thu, 17 Nov 2011 14:09:34 +0000 (14:09 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 17 Nov 2011 14:09:34 +0000 (14:09 +0000)
src/mesh/mesh_api.c

index 35bbab3a1a7d83716ed77af8cd072d9bd867884f..fe6f0916eae6c5fe7bab9eac698bedcab649f68d 100644 (file)
@@ -1084,6 +1084,7 @@ send_callback (void *cls, size_t size, void *buf)
           mc.header.size = htons (psize);
           mc.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_MULTICAST);
           mc.tid = htonl (th->tunnel->tid);
+          mc.mid = 0;
           memset (&mc.oid, 0, sizeof (struct GNUNET_PeerIdentity));
           memcpy (cbuf, &mc, sizeof (mc));
         }