commit 17c185cf6ad29afb3dcaaf0ed141969a50092163
parent ac563105bbdae2958c92e51ad4ddadfb61a6812f
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 18 Oct 2015 20:54:56 +0000
-handle NULL for session (i.e. already gone/down)
Diffstat:
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
@@ -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))