gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r20054 - gnunet/src/namestore


From: gnunet
Subject: [GNUnet-SVN] r20054 - gnunet/src/namestore
Date: Mon, 27 Feb 2012 10:29:48 +0100

Author: wachs
Date: 2012-02-27 10:29:48 +0100 (Mon, 27 Feb 2012)
New Revision: 20054

Modified:
   gnunet/src/namestore/gnunet-service-namestore.c
Log:
- fix


Modified: gnunet/src/namestore/gnunet-service-namestore.c
===================================================================
--- gnunet/src/namestore/gnunet-service-namestore.c     2012-02-27 09:22:41 UTC 
(rev 20053)
+++ gnunet/src/namestore/gnunet-service-namestore.c     2012-02-27 09:29:48 UTC 
(rev 20054)
@@ -92,15 +92,17 @@
   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);
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]