- fix connection.c:972 assertion, mark tunnel as WAITING when an incoming connection...
authorBart Polot <bart@net.in.tum.de>
Wed, 15 Oct 2014 00:55:49 +0000 (00:55 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 15 Oct 2014 00:55:49 +0000 (00:55 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index 48f8ee09f5b5ab094e25dfe4f36a83ca474b4459..c6e65926b3a18424a63fe6bace746c6df0800716 100644 (file)
@@ -2356,6 +2356,9 @@ GCT_add_connection (struct CadetTunnel *t, struct CadetConnection *c)
 
   GNUNET_CONTAINER_DLL_insert (t->connection_head, t->connection_tail, aux);
 
+  if (CADET_TUNNEL_SEARCHING == t->cstate)
+    GCT_change_estate (t, CADET_TUNNEL_WAITING);
+
   if (GNUNET_SCHEDULER_NO_TASK != t->trim_connections_task)
     t->trim_connections_task = GNUNET_SCHEDULER_add_now (&trim_connections, t);
 }
@@ -3056,7 +3059,7 @@ GCT_send_connection_acks (struct CadetTunnel *t)
                GCC_is_origin (iter->c, GNUNET_NO));
   }
 
-  GNUNET_break (to_allow == 0);
+  GNUNET_break (to_allow == 0); //FIXME tripped
 }