diff options
-rw-r--r-- | src/testbed/gnunet-service-testbed_links.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testbed/gnunet-service-testbed_links.c b/src/testbed/gnunet-service-testbed_links.c index 0ee8c6385..80e96762b 100644 --- a/src/testbed/gnunet-service-testbed_links.c +++ b/src/testbed/gnunet-service-testbed_links.c | |||
@@ -851,8 +851,8 @@ GST_neighbour_get_connection_cancel (struct NeighbourConnectNotification *h) | |||
851 | struct Neighbour *n; | 851 | struct Neighbour *n; |
852 | int cleanup_task; | 852 | int cleanup_task; |
853 | 853 | ||
854 | cleanup_task = (h == n->nl_head) ? GNUNET_YES : GNUNET_NO; | ||
855 | n = h->n; | 854 | n = h->n; |
855 | cleanup_task = (h == n->nl_head) ? GNUNET_YES : GNUNET_NO; | ||
856 | GNUNET_CONTAINER_DLL_remove (n->nl_head, n->nl_tail, h); | 856 | GNUNET_CONTAINER_DLL_remove (n->nl_head, n->nl_tail, h); |
857 | GNUNET_free (h); | 857 | GNUNET_free (h); |
858 | if (GNUNET_NO == cleanup_task) | 858 | if (GNUNET_NO == cleanup_task) |