summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-18 20:54:56 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-18 20:54:56 +0000
commit17c185cf6ad29afb3dcaaf0ed141969a50092163 (patch)
tree763a97399a00a6251c4d03b368526e64d7debbe5 /src/transport/gnunet-service-transport_neighbours.c
parentac563105bbdae2958c92e51ad4ddadfb61a6812f (diff)
-handle NULL for session (i.e. already gone/down)
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-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))