aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-10 13:09:39 +0000
committerbartpolot <bartpolot@140774ce-b5e7-0310-ab8b-a85725594a96>2012-12-10 13:09:39 +0000
commit761a210ab9d8d6b9a80f2d8bd932b4306a86c0c8 (patch)
tree8acc794c6838e12550e72774844ddd27080e48ff
parentbfd15f792299bd538e2fadb5c008f7cbe5e3b585 (diff)
- improve mesh handling of unexpected traffic
git-svn-id: https://gnunet.org/svn/gnunet@25354 140774ce-b5e7-0310-ab8b-a85725594a96
-rw-r--r--src/mesh/gnunet-service-mesh.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index a31ffbd292..d1bd579efe 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));