/* Delete */
GNUNET_STATISTICS_update (stats, "# connections", -1, GNUNET_NO);
- GMT_remove_connection (c->t, c);
+ if (NULL != c->t)
+ GMT_remove_connection (c->t, c);
GNUNET_free (c);
}
void
GMC_send_create (struct MeshConnection *connection)
{
-enum MeshTunnel3State state;
+ enum MeshTunnel3State state;
size_t size;
size = sizeof (struct GNUNET_MESH_ConnectionCreate);
GMT_change_state (connection->t, MESH_TUNNEL3_WAITING);
if (MESH_CONNECTION_NEW == connection->state)
connection_change_state (connection, MESH_CONNECTION_SENT);
+ connection->fwd_fc.queue_n++;
}