From f187f1b05bc01876ad5091a25217c1646544d7eb Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 16 Feb 2017 21:00:07 +0100 Subject: [PATCH] do not respond to BROKEN messages with BROKEN messages --- src/cadet/gnunet-service-cadet-new_core.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.25.1