diff options
author | Bart Polot <bart@net.in.tum.de> | 2011-11-17 14:09:34 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2011-11-17 14:09:34 +0000 |
commit | ac58871d15736090f15bf74723e4af378ecf8ce5 (patch) | |
tree | 5530ff079a396ddba22cf3ce618f0cd13b5b8cfc /src/mesh | |
parent | 86427d52112469a46a3147b30e8dbfa14dec9c93 (diff) | |
download | gnunet-ac58871d15736090f15bf74723e4af378ecf8ce5.tar.gz gnunet-ac58871d15736090f15bf74723e4af378ecf8ce5.zip |
Fix coverity #10264
Diffstat (limited to 'src/mesh')
-rw-r--r-- | src/mesh/mesh_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesh/mesh_api.c b/src/mesh/mesh_api.c index 35bbab3a1..fe6f0916e 100644 --- a/src/mesh/mesh_api.c +++ b/src/mesh/mesh_api.c | |||
@@ -1084,6 +1084,7 @@ send_callback (void *cls, size_t size, void *buf) | |||
1084 | mc.header.size = htons (psize); | 1084 | mc.header.size = htons (psize); |
1085 | mc.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_MULTICAST); | 1085 | mc.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_MULTICAST); |
1086 | mc.tid = htonl (th->tunnel->tid); | 1086 | mc.tid = htonl (th->tunnel->tid); |
1087 | mc.mid = 0; | ||
1087 | memset (&mc.oid, 0, sizeof (struct GNUNET_PeerIdentity)); | 1088 | memset (&mc.oid, 0, sizeof (struct GNUNET_PeerIdentity)); |
1088 | memcpy (cbuf, &mc, sizeof (mc)); | 1089 | memcpy (cbuf, &mc, sizeof (mc)); |
1089 | } | 1090 | } |