commit f187f1b05bc01876ad5091a25217c1646544d7eb parent 6acad134965d7f6de9c122981e91a886c1c28b44 Author: Christian Grothoff <christian@grothoff.org> Date: Thu, 16 Feb 2017 21:00:07 +0100 do not respond to BROKEN messages with BROKEN messages Diffstat:
| M | src/cadet/gnunet-service-cadet-new_core.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git 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;