[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r31338 - gnunet/src/mesh
From: |
gnunet |
Subject: |
[GNUnet-SVN] r31338 - gnunet/src/mesh |
Date: |
Thu, 12 Dec 2013 20:06:12 +0100 |
Author: bartpolot
Date: 2013-12-12 20:06:12 +0100 (Thu, 12 Dec 2013)
New Revision: 31338
Modified:
gnunet/src/mesh/gnunet-service-mesh_tunnel.c
Log:
- fix delete loop
Modified: gnunet/src/mesh/gnunet-service-mesh_tunnel.c
===================================================================
--- gnunet/src/mesh/gnunet-service-mesh_tunnel.c 2013-12-12 19:00:24 UTC
(rev 31337)
+++ gnunet/src/mesh/gnunet-service-mesh_tunnel.c 2013-12-12 19:06:12 UTC
(rev 31338)
@@ -1759,15 +1759,19 @@
GMT_remove_connection (struct MeshTunnel3 *t, struct MeshConnection *c)
{
struct MeshTConnection *aux;
+ struct MeshTConnection *next;
LOG (GNUNET_ERROR_TYPE_DEBUG, "Removing connection %s from tunnel %s\n",
GMC_2s (c), GMT_2s (t));
- for (aux = t->connection_head; aux != NULL; aux = aux->next)
+ for (aux = t->connection_head; aux != NULL; aux = next)
+ {
+ next = aux->next;
if (aux->c == c)
{
GNUNET_CONTAINER_DLL_remove (t->connection_head, t->connection_tail,
aux);
GNUNET_free (aux);
}
+ }
/* Start new connections if needed */
if (NULL == t->connection_head)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r31338 - gnunet/src/mesh,
gnunet <=