From: Bart Polot Date: Mon, 27 Apr 2015 19:15:57 +0000 (+0000) Subject: - don't queue more than one ax_kx at a time X-Git-Tag: initial-import-from-subversion-38251~1979 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=15216bd05fe3904f3fe595f44069edfa20eeaf08;p=oweals%2Fgnunet.git - don't queue more than one ax_kx at a time --- 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);