eliminate KX short cut v2
authorChristian Grothoff <christian@grothoff.org>
Wed, 16 May 2018 16:29:13 +0000 (18:29 +0200)
committerChristian Grothoff <christian@grothoff.org>
Wed, 16 May 2018 16:29:13 +0000 (18:29 +0200)
src/cadet/gnunet-service-cadet_tunnels.c

index aa5f95883ae3a7e0653452bf644e72aa423661c9..3008e90853a2f5befd418af5dced22911d23647e 100644 (file)
@@ -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));