From c3601b4b49c5fe65f18d67a4c8ce4ed867cf0710 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 4 Nov 2016 09:47:14 +0000 Subject: [PATCH] - sending KX on loopback is very wrong, die --- src/cadet/gnunet-service-cadet_tunnel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 249974d81..7d44b3545 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -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) { -- 2.25.1