From: Christian Grothoff Date: Wed, 8 Apr 2020 15:34:27 +0000 (+0200) Subject: hack around crash on disconnect X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ba4da8c3f22977b33028988a7f65596005ce3f55;p=oweals%2Fgnunet.git hack around crash on disconnect --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 7638839cc..927a8753c 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -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) {