- use correct data type
authorBart Polot <bart@net.in.tum.de>
Thu, 30 Jan 2014 02:11:05 +0000 (02:11 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 30 Jan 2014 02:11:05 +0000 (02:11 +0000)
src/mesh/gnunet-service-mesh_local.c

index d61a12c1450ddb29ab5f9be9221197c367a2e925..c5dfd5aa41612d2aaa02d48fac4b42ae123fb098 100644 (file)
@@ -732,7 +732,7 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client,
 
   size = sizeof (struct GNUNET_MESH_LocalInfo);
   size += c_n * sizeof (struct GNUNET_HashCode);
-  size += ch_n * sizeof (uint32_t);
+  size += ch_n * sizeof (MESH_ChannelNumber);
 
   resp = GNUNET_malloc (size);
   resp->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNEL);