aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_local.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh_local.c')
-rw-r--r--src/mesh/gnunet-service-mesh_local.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh_local.c b/src/mesh/gnunet-service-mesh_local.c
index adac4cdf1..fa54fafa6 100644
--- a/src/mesh/gnunet-service-mesh_local.c
+++ b/src/mesh/gnunet-service-mesh_local.c
@@ -593,7 +593,7 @@ handle_ack (void *cls, struct GNUNET_SERVER_Client *client,
593// struct MeshChannel *ch = value; 593// struct MeshChannel *ch = value;
594// struct GNUNET_MESH_LocalMonitor *msg; 594// struct GNUNET_MESH_LocalMonitor *msg;
595// 595//
596// msg = GNUNET_malloc (sizeof(struct GNUNET_MESH_LocalMonitor)); 596// msg = GNUNET_new (struct GNUNET_MESH_LocalMonitor);
597// msg->channel_id = htonl (ch->gid); 597// msg->channel_id = htonl (ch->gid);
598// msg->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor)); 598// msg->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor));
599// msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS); 599// msg->header.type = htons (GNUNET_MESSAGE_TYPE_MESH_LOCAL_INFO_TUNNELS);
@@ -688,7 +688,7 @@ handle_show_tunnel (void *cls, struct GNUNET_SERVER_Client *client,
688 } 688 }
689 689
690 /* Initialize context */ 690 /* Initialize context */
691 resp = GNUNET_malloc (sizeof (struct GNUNET_MESH_LocalMonitor)); 691 resp = GNUNET_new (struct GNUNET_MESH_LocalMonitor);
692 *resp = *msg; 692 *resp = *msg;
693 resp->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor)); 693 resp->header.size = htons (sizeof (struct GNUNET_MESH_LocalMonitor));
694 GNUNET_SERVER_notification_context_unicast (nc, c->handle, 694 GNUNET_SERVER_notification_context_unicast (nc, c->handle,