From: Christian Grothoff Date: Thu, 16 Feb 2017 20:00:07 +0000 (+0100) Subject: do not respond to BROKEN messages with BROKEN messages X-Git-Tag: taler-0.2.1~169 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f187f1b05bc01876ad5091a25217c1646544d7eb;p=oweals%2Fgnunet.git do not respond to BROKEN messages with BROKEN messages --- diff --git a/src/cadet/gnunet-service-cadet-new_core.c b/src/cadet/gnunet-service-cadet-new_core.c index 8886e7a61..05fe5f49f 100644 --- a/src/cadet/gnunet-service-cadet-new_core.c +++ b/src/cadet/gnunet-service-cadet-new_core.c @@ -368,6 +368,13 @@ route_message (struct CadetPeer *prev, ntohs (msg->type), GCP_2s (prev), GNUNET_sh2s (&cid->connection_of_tunnel)); + switch (ntohs (msg->type)) + { + case GNUNET_MESSAGE_TYPE_CADET_CONNECTION_DESTROY: + case GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN: + /* No need to respond to these! */ + return; + } env = GNUNET_MQ_msg (bm, GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN); bm->cid = *cid;