- check that the connection belongs to a tunnel when keeping it alive (otherwise...
authorBart Polot <bart@net.in.tum.de>
Mon, 21 Jul 2014 00:15:10 +0000 (00:15 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 21 Jul 2014 00:15:10 +0000 (00:15 +0000)
src/cadet/gnunet-service-cadet_connection.c

index 8eefac411409317797aa3a72457ee9571eb27aa9..005e1cb8d9a9cb06f2b8b19c3268f8d7d991650a 100644 (file)
@@ -949,6 +949,12 @@ connection_maintain (struct CadetConnection *c, int fwd)
   if (GNUNET_NO != c->destroy)
     return;
 
+  if (NULL == c->t)
+  {
+    GNUNET_break (0);
+    return;
+  }
+
   if (CADET_TUNNEL_SEARCHING == GCT_get_cstate (c->t))
   {
     /* TODO DHT GET with RO_BART */