- sending KX on loopback is very wrong, die
authorBart Polot <bart@net.in.tum.de>
Fri, 4 Nov 2016 09:47:14 +0000 (09:47 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 4 Nov 2016 09:47:14 +0000 (09:47 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index 249974d81400d062deadadb38a74e0a6c59fd3c2..7d44b3545cc327039822ea2ef68f571b5469082f 100644 (file)
@@ -3217,13 +3217,8 @@ GCT_send_kx (struct CadetTunnel *t, int force_reply)
     LOG (GNUNET_ERROR_TYPE_INFO, "     already queued, nop\n");
     return;
   }
+  GNUNET_assert (GNUNET_NO == GCT_is_loopback (t));
 
-  /* Avoid loopback. */
-  if (GCT_is_loopback (t))
-  {
-    GNUNET_break (0);
-    return;
-  }
   c = tunnel_get_connection (t);
   if (NULL == c)
   {