From 17c185cf6ad29afb3dcaaf0ed141969a50092163 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 18 Oct 2015 20:54:56 +0000 Subject: [PATCH] -handle NULL for session (i.e. already gone/down) --- src/transport/gnunet-service-transport_neighbours.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 07af225c1..db866f5a0 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -2614,8 +2614,9 @@ switch_address_bl_check_cont (void *cls, "# ATS suggestions ignored (blacklist denied)", 1, GNUNET_NO); - papi->disconnect_session (papi->cls, - session); + if (NULL != session) + papi->disconnect_session (papi->cls, + session); if (GNUNET_YES != GNUNET_HELLO_address_check_option (address, GNUNET_HELLO_ADDRESS_INFO_INBOUND)) -- 2.25.1