From 8ec4debc3cfe6130234575e6d0816d2939d7fe95 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 5 Aug 2011 10:50:53 +0000 Subject: [PATCH] related to mantis bug 1744 --- src/transport/gnunet-service-transport.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index ea7ce98db..cf02d14b2 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -1446,6 +1446,15 @@ transmit_to_client (struct TransportClient *client, struct ClientMessageQueueEntry *q; uint16_t msize; + /* Client==NULL when GNUNET_SERVER_Client disconnected and was + * freed in client_disconnect_notification + */ + if (client->client == NULL) + { + GNUNET_break (0); + return; + } + if ((client->message_count >= MAX_PENDING) && (GNUNET_YES == may_drop)) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, -- 2.25.1