gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r29256 - gnunet/src/identity


From: gnunet
Subject: [GNUnet-SVN] r29256 - gnunet/src/identity
Date: Sun, 15 Sep 2013 01:48:35 +0200

Author: LRN
Date: 2013-09-15 01:48:35 +0200 (Sun, 15 Sep 2013)
New Revision: 29256

Modified:
   gnunet/src/identity/identity_api.c
Log:
Don't go into infinite loop once only uncancellable head is left

Modified: gnunet/src/identity/identity_api.c
===================================================================
--- gnunet/src/identity/identity_api.c  2013-09-14 16:49:45 UTC (rev 29255)
+++ gnunet/src/identity/identity_api.c  2013-09-14 23:48:35 UTC (rev 29256)
@@ -952,7 +952,7 @@
   struct GNUNET_IDENTITY_Operation *op;
 
   GNUNET_assert (NULL != h);
-  while (NULL != (op = h->op_head))
+  while ((NULL != (op = h->op_head) && (NULL != op->next)))
     GNUNET_IDENTITY_cancel (op);
   if (h->reconnect_task != GNUNET_SCHEDULER_NO_TASK)
   {




reply via email to

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