[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19227 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19227 - gnunet/src/mesh |
Date: |
Wed, 18 Jan 2012 12:17:33 +0100 |
Author: bartpolot
Date: 2012-01-18 12:17:33 +0100 (Wed, 18 Jan 2012)
New Revision: 19227
Modified:
gnunet/src/mesh/gnunet-service-mesh.c
Log:
Fixed a bug when a multicast packet is delivered exclusively to local clients
Modified: gnunet/src/mesh/gnunet-service-mesh.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh.c 2012-01-18 11:14:55 UTC (rev
19226)
+++ gnunet/src/mesh/gnunet-service-mesh.c 2012-01-18 11:17:33 UTC (rev
19227)
@@ -796,9 +796,11 @@
uint16_t type;
char cbuf[htons (msg->size)];
+#if MESH_DEBUG
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: Sending to clients...\n");
type = ntohs (payload->type);
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: message of type %u\n", type);
+#endif
memcpy (cbuf, msg, sizeof (cbuf));
switch (htons (msg->type))
@@ -2087,7 +2089,12 @@
{
GNUNET_free (mdata->data);
GNUNET_free (mdata->reference_counter);
- GNUNET_free_non_null (mdata->task);
+ if (NULL != mdata->task)
+ {
+ GNUNET_SCHEDULER_cancel(*(mdata->task));
+ GNUNET_free (mdata->task);
+ }
+ // FIXME change order?
GNUNET_free (mdata);
}
#if MESH_DEBUG
@@ -4347,7 +4354,7 @@
shutdown_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
{
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH: shutting down\n");
- /* TODO: destroy tunnels? */
+
if (core_handle != NULL)
{
GNUNET_CORE_disconnect (core_handle);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19227 - gnunet/src/mesh,
gnunet <=