Use the right list at the right time.
authorPhilipp Tölke <toelke@in.tum.de>
Tue, 2 Aug 2011 07:34:43 +0000 (07:34 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Tue, 2 Aug 2011 07:34:43 +0000 (07:34 +0000)
src/mesh/mesh_api.c

index 445c743883361c1b21c70c0c879ac576c2473586..5db0229ef16e938d805cfee75b052eb44c2dafa0 100644 (file)
@@ -385,8 +385,8 @@ receive_hello (void *cls,
         {
           if (ntohs (ports[i]) == tunnel->tunnel.application_type)
             {
-              GNUNET_CONTAINER_DLL_remove (handle->pending_tunnels.head,
-                                           handle->pending_tunnels.tail,
+              GNUNET_CONTAINER_DLL_remove (handle->pending_by_type_tunnels.head,
+                                           handle->pending_by_type_tunnels.tail,
                                            tunnel);
               GNUNET_CONTAINER_DLL_insert_after (handle->established_tunnels.
                                                  head,