gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit 3e56060cdd1e45b38de80cead264e14077665e2e
parent 8fdda144448a85f98993dace8eeac8b75fc19c9f
Author: Bart Polot <bart@net.in.tum.de>
Date:   Fri, 18 Oct 2013 04:02:03 +0000

- doing stuff after destroying a connection? not good...


Diffstat:
Msrc/mesh/gnunet-service-mesh_connection.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c @@ -452,6 +452,7 @@ message_sent (void *cls, { LOG (GNUNET_ERROR_TYPE_DEBUG, "! destroying connection!\n"); GMC_destroy (c); + return; } /* Send ACK if needed, after accounting for sent ID in fc->queue_n */ switch (type) @@ -2158,7 +2159,7 @@ GMC_send_prebuilt_message (const struct GNUNET_MessageHeader *message, droppable = GNUNET_NO; break; - case GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY: + case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY: dmsg = (struct GNUNET_MESH_ConnectionDestroy *) data; dmsg->cid = c->id; dmsg->reserved = 0; @@ -2243,7 +2244,7 @@ GMC_send_destroy (struct MeshConnection *c) return; msg.header.size = htons (sizeof (msg)); - msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY);; + msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY);; msg.cid = c->id; LOG (GNUNET_ERROR_TYPE_DEBUG, " sending connection destroy for connection %s\n",