From: Bart Polot Date: Fri, 18 Oct 2013 04:02:03 +0000 (+0000) Subject: - doing stuff after destroying a connection? not good... X-Git-Tag: initial-import-from-subversion-38251~6465 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3e56060cdd1e45b38de80cead264e14077665e2e;p=oweals%2Fgnunet.git - doing stuff after destroying a connection? not good... --- diff --git a/src/mesh/gnunet-service-mesh_connection.c b/src/mesh/gnunet-service-mesh_connection.c index b1b251595..99b156595 100644 --- 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",