- improve mesh handling of unexpected traffic
authorBart Polot <bart@net.in.tum.de>
Mon, 10 Dec 2012 13:09:39 +0000 (13:09 +0000)
committerBart Polot <bart@net.in.tum.de>
Mon, 10 Dec 2012 13:09:39 +0000 (13:09 +0000)
src/mesh/gnunet-service-mesh.c

index a31ffbd292f3c3dbaf3479dbe0dfd17aecf612f4..d1bd579efe045417344e6d3748173ba30f28c430 100644 (file)
@@ -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));