Another assert which is actually OK
authorDavid Barksdale <amatus@amat.us>
Wed, 20 Dec 2017 01:20:25 +0000 (19:20 -0600)
committerDavid Barksdale <amatus@amat.us>
Wed, 20 Dec 2017 01:20:25 +0000 (19:20 -0600)
src/transport/gnunet-service-transport_neighbours.c

index 19f5fd0819aaf91e9803aff94b2466e9e67612c2..ac72a667c0a29451e7e24797363ff453a7f7b3e9 100644 (file)
@@ -2433,7 +2433,10 @@ switch_address_bl_check_cont (void *cls,
     goto cleanup;
 
   papi = GST_plugins_find (address->transport_name);
-  GNUNET_assert (NULL != papi);
+  if (NULL == papi) {
+    /* This can happen during shutdown. */
+    goto cleanup;
+  }
 
   if (GNUNET_NO == result)
   {