-handle NULL for session (i.e. already gone/down)
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 20:54:56 +0000 (20:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 20:54:56 +0000 (20:54 +0000)
src/transport/gnunet-service-transport_neighbours.c

index 07af225c1296e4934847db2f8e474f858c66468e..db866f5a013466914b35604097ee9fb8fe535181 100644 (file)
@@ -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))