From: Christian Grothoff Date: Fri, 15 Jul 2011 07:55:32 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~17862 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=9ba9ea13dc924afbf2dd03c3fd15e9e9d833d91a;p=oweals%2Fgnunet.git fix --- diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 1141bdb64..5b91df827 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -6163,6 +6163,8 @@ client_disconnect_notification (void *cls, struct ClientMessageQueueEntry *mqe; struct Blacklisters *bl; struct BlacklistCheck *bc; + struct NeighbourList *n; + struct MessageQueue *mq; if (client == NULL) return; @@ -6221,6 +6223,14 @@ client_disconnect_notification (void *cls, pos->message_count--; GNUNET_free (mqe); } + for (n = neighbours; n != NULL; n = n->next) + { + for (mq = n->messages_head; mq != NULL; mq = mq->next) + { + if (mq->client == pos) + mq->client = NULL; /* do not use anymore! */ + } + } if (prev == NULL) clients = pos->next; else