diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-11-04 09:47:14 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-11-04 09:47:14 +0000 |
commit | c3601b4b49c5fe65f18d67a4c8ce4ed867cf0710 (patch) | |
tree | 5baf2904cd939fac2f739b9ac6eae093d3f05f78 | |
parent | 66fb4c43c0a347911070dbd274606471a013137e (diff) | |
download | gnunet-c3601b4b49c5fe65f18d67a4c8ce4ed867cf0710.tar.gz gnunet-c3601b4b49c5fe65f18d67a4c8ce4ed867cf0710.zip |
- sending KX on loopback is very wrong, die
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 7 |
1 files changed, 1 insertions, 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) | |||
3217 | LOG (GNUNET_ERROR_TYPE_INFO, " already queued, nop\n"); | 3217 | LOG (GNUNET_ERROR_TYPE_INFO, " already queued, nop\n"); |
3218 | return; | 3218 | return; |
3219 | } | 3219 | } |
3220 | GNUNET_assert (GNUNET_NO == GCT_is_loopback (t)); | ||
3220 | 3221 | ||
3221 | /* Avoid loopback. */ | ||
3222 | if (GCT_is_loopback (t)) | ||
3223 | { | ||
3224 | GNUNET_break (0); | ||
3225 | return; | ||
3226 | } | ||
3227 | c = tunnel_get_connection (t); | 3222 | c = tunnel_get_connection (t); |
3228 | if (NULL == c) | 3223 | if (NULL == c) |
3229 | { | 3224 | { |