- don't queue more than one ax_kx at a time
authorBart Polot <bart@net.in.tum.de>
Mon, 27 Apr 2015 19:15:57 +0000 (19:15 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 27 Apr 2015 19:15:57 +0000 (19:15 +0000)
src/cadet/gnunet-service-cadet_tunnel.c

index 69e2ea8f178ee4c71e98295ad6e5050d98427159..f0232fee2552548c528e38a29e7e47b209143e8e 100644 (file)
@@ -4133,6 +4133,11 @@ GCT_send_ax_kx (struct CadetTunnel *t)
   struct GNUNET_CADET_AX_KX msg;
 
   LOG (GNUNET_ERROR_TYPE_INFO, "===> AX_KX for %s\n", GCT_2s (t));
+  if (NULL != t->ephm_h)
+  {
+    LOG (GNUNET_ERROR_TYPE_INFO, "     already queued\n");
+    return;
+  }
 
   msg.header.size = htons (sizeof (msg));
   msg.header.type = htons (GNUNET_MESSAGE_TYPE_CADET_AX_KX);