From 15216bd05fe3904f3fe595f44069edfa20eeaf08 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 27 Apr 2015 19:15:57 +0000 Subject: [PATCH] - don't queue more than one ax_kx at a time --- src/cadet/gnunet-service-cadet_tunnel.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 69e2ea8f1..f0232fee2 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -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); -- 2.25.1