gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r32923 - gnunet/src/mesh


From: gnunet
Subject: [GNUnet-SVN] r32923 - gnunet/src/mesh
Date: Mon, 7 Apr 2014 16:14:40 +0200

Author: bartpolot
Date: 2014-04-07 16:14:40 +0200 (Mon, 07 Apr 2014)
New Revision: 32923

Modified:
   gnunet/src/mesh/gnunet-service-mesh_peer.c
Log:
- fix coverity 12989

Modified: gnunet/src/mesh/gnunet-service-mesh_peer.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-04-07 14:09:23 UTC (rev 
32922)
+++ gnunet/src/mesh/gnunet-service-mesh_peer.c  2014-04-07 14:14:40 UTC (rev 
32923)
@@ -1241,11 +1241,13 @@
 GMP_connection_pop (struct MeshPeer *peer, struct MeshConnection *c)
 {
   struct MeshPeerQueue *q;
+  struct MeshPeerQueue *next;
   struct GNUNET_MessageHeader *msg;
 
   LOG (GNUNET_ERROR_TYPE_DEBUG, "Connection pop on %s\n", GMC_2s (c));
-  for (q = peer->queue_head; NULL != q; q = q->next)
+  for (q = peer->queue_head; NULL != q; q = next)
   {
+    next = q->next;
     if (q->c != c)
       continue;
     switch (q->type)




reply via email to

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