diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-23 23:00:58 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-23 23:00:58 +0000 |
commit | 1ad5bcbf2a889f906307daaa88753f38c8bd5903 (patch) | |
tree | 917b730897e8029d12970093aae3890cd50cd181 /src/vpn | |
parent | 5637b075a3a5681ee73d034e233ba53347f84c1f (diff) | |
download | gnunet-1ad5bcbf2a889f906307daaa88753f38c8bd5903.tar.gz gnunet-1ad5bcbf2a889f906307daaa88753f38c8bd5903.zip |
-fixing #2100
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index 1a3c6035f..f935a895b 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -527,6 +527,7 @@ free_tunnel_state (struct TunnelState *ts) | |||
527 | GNUNET_assert (NULL == ts->destination.heap_node); | 527 | GNUNET_assert (NULL == ts->destination.heap_node); |
528 | if (NULL != (tunnel = ts->tunnel)) | 528 | if (NULL != (tunnel = ts->tunnel)) |
529 | { | 529 | { |
530 | fprintf (stderr, "Destroying tunnel %p\n", tunnel); | ||
530 | ts->tunnel = NULL; | 531 | ts->tunnel = NULL; |
531 | GNUNET_MESH_tunnel_destroy (tunnel); | 532 | GNUNET_MESH_tunnel_destroy (tunnel); |
532 | } | 533 | } |
@@ -725,6 +726,7 @@ send_to_tunnel (struct TunnelMessageQueueEntry *tnq, | |||
725 | GNUNET_CONTAINER_DLL_remove (ts->tmq_head, | 726 | GNUNET_CONTAINER_DLL_remove (ts->tmq_head, |
726 | ts->tmq_tail, | 727 | ts->tmq_tail, |
727 | dq); | 728 | dq); |
729 | ts->tmq_length--; | ||
728 | GNUNET_MESH_notify_transmit_ready_cancel (ts->th); | 730 | GNUNET_MESH_notify_transmit_ready_cancel (ts->th); |
729 | ts->th = NULL; | 731 | ts->th = NULL; |
730 | GNUNET_STATISTICS_update (stats, | 732 | GNUNET_STATISTICS_update (stats, |
@@ -781,6 +783,7 @@ create_tunnel_to_destination (struct DestinationEntry *de, | |||
781 | &tunnel_peer_connect_handler, | 783 | &tunnel_peer_connect_handler, |
782 | &tunnel_peer_disconnect_handler, | 784 | &tunnel_peer_disconnect_handler, |
783 | ts); | 785 | ts); |
786 | fprintf (stderr, "Created tunnel %p\n", ts->tunnel); | ||
784 | if (NULL == ts->tunnel) | 787 | if (NULL == ts->tunnel) |
785 | { | 788 | { |
786 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 789 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |