From ddc75438cdaefbff7210ded85a20ee6d6de1d8d8 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 16 May 2018 18:29:13 +0200 Subject: [PATCH] eliminate KX short cut v2 --- src/cadet/gnunet-service-cadet_tunnels.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cadet/gnunet-service-cadet_tunnels.c b/src/cadet/gnunet-service-cadet_tunnels.c index aa5f95883..3008e9085 100644 --- a/src/cadet/gnunet-service-cadet_tunnels.c +++ b/src/cadet/gnunet-service-cadet_tunnels.c @@ -1701,6 +1701,7 @@ GCT_handle_kx (struct CadetTConnection *ct, "# KX received", 1, GNUNET_NO); +#if 0 if ( (0 == memcmp (&t->ax.DHRr, &msg->ratchet_key, @@ -1723,7 +1724,7 @@ GCT_handle_kx (struct CadetTConnection *ct, GNUNET_NO); return; } - +#endif /* We only keep ONE unverified KX around, so if there is an existing one, clean it up. */ if (NULL != t->unverified_ax) @@ -1759,6 +1760,7 @@ GCT_handle_kx (struct CadetTConnection *ct, "# Unverified KX dropped for fresh KX", 1, GNUNET_NO); + GNUNET_break (NULL == t->unverified_ax->skipped_head); memset (t->unverified_ax, 0, sizeof (struct CadetTunnelAxolotl)); -- 2.25.1