From: Matthias Wachs Date: Fri, 5 Aug 2011 10:50:53 +0000 (+0000) Subject: related to mantis bug 1744 X-Git-Tag: initial-import-from-subversion-38251~17455 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8ec4debc3cfe6130234575e6d0816d2939d7fe95;p=oweals%2Fgnunet.git related to mantis bug 1744 --- 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,