summaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c5
1 files 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))