From: Matthias Wachs Date: Mon, 27 Feb 2012 09:29:48 +0000 (+0000) Subject: - fix X-Git-Tag: initial-import-from-subversion-38251~14624 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ac1c36e32ac88e52dec3e78555535c0bc3bcf60b;p=oweals%2Fgnunet.git - fix --- diff --git a/src/namestore/gnunet-service-namestore.c b/src/namestore/gnunet-service-namestore.c index e4f7a2b37..e7c03bf21 100644 --- a/src/namestore/gnunet-service-namestore.c +++ b/src/namestore/gnunet-service-namestore.c @@ -92,15 +92,17 @@ cleanup_task (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Stopping namestore service\n"); struct GNUNET_NAMESTORE_Operation * no; + struct GNUNET_NAMESTORE_Operation * tmp; struct GNUNET_NAMESTORE_Client * nc; struct GNUNET_NAMESTORE_Client * next; for (nc = client_head; nc != NULL; nc = next) { next = nc->next; - for (no = nc->op_head; no != NULL; no = no->next) + for (no = nc->op_head; no != NULL; no = tmp) { GNUNET_CONTAINER_DLL_remove (nc->op_head, nc->op_tail, no); + tmp = no->next; GNUNET_free (no); }