hack around crash on disconnect
authorChristian Grothoff <christian@grothoff.org>
Wed, 8 Apr 2020 15:34:27 +0000 (17:34 +0200)
committerChristian Grothoff <christian@grothoff.org>
Wed, 8 Apr 2020 15:34:27 +0000 (17:34 +0200)
src/transport/gnunet-service-transport.c

index 7638839cc3000a781ce1d01b16de375d0b981b10..927a8753c6051f0cbaa7fc162d86c844143898de 100644 (file)
@@ -529,7 +529,10 @@ client_disconnect_cb (void *cls,
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
               "Client %p disconnected, cleaning up.\n",
               tc);
-  GNUNET_CONTAINER_multipeermap_iterate (active_stccs, &mark_match_down, tc);
+  if (NULL != active_stccs)
+    GNUNET_CONTAINER_multipeermap_iterate (active_stccs,
+                                           &mark_match_down,
+                                           tc);
   for (struct AddressToStringContext *cur = a2s_head; NULL != cur;
        cur = cur->next)
   {