aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-10-18 04:02:03 +0000
committerBart Polot <bart@net.in.tum.de>2013-10-18 04:02:03 +0000
commit3e56060cdd1e45b38de80cead264e14077665e2e (patch)
tree066a910a4925692e1aabe52c5e208de463939824 /src
parent8fdda144448a85f98993dace8eeac8b75fc19c9f (diff)
downloadgnunet-3e56060cdd1e45b38de80cead264e14077665e2e.tar.gz
gnunet-3e56060cdd1e45b38de80cead264e14077665e2e.zip
- doing stuff after destroying a connection? not good...
Diffstat (limited to 'src')
-rw-r--r--src/mesh/gnunet-service-mesh_connection.c5
1 files changed, 3 insertions, 2 deletions
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,
452 { 452 {
453 LOG (GNUNET_ERROR_TYPE_DEBUG, "! destroying connection!\n"); 453 LOG (GNUNET_ERROR_TYPE_DEBUG, "! destroying connection!\n");
454 GMC_destroy (c); 454 GMC_destroy (c);
455 return;
455 } 456 }
456 /* Send ACK if needed, after accounting for sent ID in fc->queue_n */ 457 /* Send ACK if needed, after accounting for sent ID in fc->queue_n */
457 switch (type) 458 switch (type)
@@ -2158,7 +2159,7 @@ GMC_send_prebuilt_message (const struct GNUNET_MessageHeader *message,
2158 droppable = GNUNET_NO; 2159 droppable = GNUNET_NO;
2159 break; 2160 break;
2160 2161
2161 case GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY: 2162 case GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY:
2162 dmsg = (struct GNUNET_MESH_ConnectionDestroy *) data; 2163 dmsg = (struct GNUNET_MESH_ConnectionDestroy *) data;
2163 dmsg->cid = c->id; 2164 dmsg->cid = c->id;
2164 dmsg->reserved = 0; 2165 dmsg->reserved = 0;
@@ -2243,7 +2244,7 @@ GMC_send_destroy (struct MeshConnection *c)
2243 return; 2244 return;
2244 2245
2245 msg.header.size = htons (sizeof (msg)); 2246 msg.header.size = htons (sizeof (msg));
2246 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_TUNNEL_DESTROY);; 2247 msg.header.type = htons (GNUNET_MESSAGE_TYPE_MESH_CONNECTION_DESTROY);;
2247 msg.cid = c->id; 2248 msg.cid = c->id;
2248 LOG (GNUNET_ERROR_TYPE_DEBUG, 2249 LOG (GNUNET_ERROR_TYPE_DEBUG,
2249 " sending connection destroy for connection %s\n", 2250 " sending connection destroy for connection %s\n",