From 86e663b738822048f7bfb7c5396924f8dd1efff0 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Mon, 10 Dec 2012 13:09:39 +0000 Subject: [PATCH] - improve mesh handling of unexpected traffic --- src/mesh/gnunet-service-mesh.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index a31ffbd29..d1bd579ef 100644 --- a/src/mesh/gnunet-service-mesh.c +++ b/src/mesh/gnunet-service-mesh.c @@ -6038,6 +6038,13 @@ handle_mesh_data_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer, predecessor = tree_get_predecessor (t->tree); if (0 == predecessor) { + if (GNUNET_YES == t->destroy) + { + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "to orig received on a dying tunnel %s [%X]\n", + GNUNET_i2s (&msg->oid), ntohl(msg->tid)); + return GNUNET_OK; + } GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "unknown to origin at %s\n", GNUNET_i2s (&my_full_id)); -- 2.25.1