diff options
-rw-r--r-- | src/cadet/gnunet-service-cadet_connection.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_connection.c b/src/cadet/gnunet-service-cadet_connection.c index 917eed307..df5693d3a 100644 --- a/src/cadet/gnunet-service-cadet_connection.c +++ b/src/cadet/gnunet-service-cadet_connection.c | |||
@@ -2800,6 +2800,8 @@ GCC_destroy (struct CadetConnection *c) | |||
2800 | { | 2800 | { |
2801 | connection_cancel_queues (c, GNUNET_YES); | 2801 | connection_cancel_queues (c, GNUNET_YES); |
2802 | connection_cancel_queues (c, GNUNET_NO); | 2802 | connection_cancel_queues (c, GNUNET_NO); |
2803 | path_destroy (c->path); | ||
2804 | c->path = NULL; | ||
2803 | } | 2805 | } |
2804 | unregister_neighbors (c); | 2806 | unregister_neighbors (c); |
2805 | 2807 | ||
@@ -2821,9 +2823,6 @@ GCC_destroy (struct CadetConnection *c) | |||
2821 | if (NULL != c->t) | 2823 | if (NULL != c->t) |
2822 | GCT_remove_connection (c->t, c); | 2824 | GCT_remove_connection (c->t, c); |
2823 | 2825 | ||
2824 | if ( (GNUNET_NO == GCC_is_origin (c, GNUNET_YES)) && | ||
2825 | (NULL != c->path) ) | ||
2826 | path_destroy (c->path); | ||
2827 | if (NULL != c->fwd_maintenance_task) | 2826 | if (NULL != c->fwd_maintenance_task) |
2828 | GNUNET_SCHEDULER_cancel (c->fwd_maintenance_task); | 2827 | GNUNET_SCHEDULER_cancel (c->fwd_maintenance_task); |
2829 | if (NULL != c->bck_maintenance_task) | 2828 | if (NULL != c->bck_maintenance_task) |