From ba4da8c3f22977b33028988a7f65596005ce3f55 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 8 Apr 2020 17:34:27 +0200 Subject: [PATCH] hack around crash on disconnect --- src/transport/gnunet-service-transport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.25.1