From: Bart Polot Date: Mon, 10 Dec 2012 13:09:39 +0000 (+0000) Subject: - improve mesh handling of unexpected traffic X-Git-Tag: initial-import-from-subversion-38251~10533 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86e663b738822048f7bfb7c5396924f8dd1efff0;p=oweals%2Fgnunet.git - improve mesh handling of unexpected traffic --- 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));