From: Bart Polot Date: Wed, 26 Oct 2016 04:20:52 +0000 (+0000) Subject: - simplify KX code X-Git-Tag: initial-import-from-subversion-38251~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4101c2a6c6364688a58f0d9d3a628aa57f25f0d6;p=oweals%2Fgnunet.git - simplify KX code --- diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index e60c3c023..fc715a419 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c @@ -1575,7 +1575,6 @@ send_kx (struct CadetTunnel *t, char cbuf[sizeof (struct GNUNET_CADET_KX) + size]; uint16_t type; int fwd; - GCC_sent cont; LOG (GNUNET_ERROR_TYPE_DEBUG, "GMT KX on Tunnel %s\n", GCT_2s (t)); @@ -1621,7 +1620,6 @@ send_kx (struct CadetTunnel *t, { case GNUNET_MESSAGE_TYPE_CADET_AX_KX: GNUNET_assert (NULL == t->ephm_h); - cont = &ephm_sent; break; default: LOG (GNUNET_ERROR_TYPE_DEBUG, "unkown type %s\n", GC_m2s (type)); @@ -1633,7 +1631,7 @@ send_kx (struct CadetTunnel *t, return GCC_send_prebuilt_message (&msg->header, type, 0, c, fwd, GNUNET_YES, - cont, t); + &ephm_sent, t); }