gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit a5707b7654ab0a32cea982451d2893cdfe6cc3e0
parent 292710a124c101d96861ce6780d1a6add75145dc
Author: Bart Polot <bart@net.in.tum.de>
Date:   Fri, 15 Nov 2013 13:16:40 +0000

- fix NACK handling (related to cov 10832)


Diffstat:
Msrc/mesh/gnunet-service-mesh_tunnel.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c @@ -973,10 +973,10 @@ handle_ch_create (struct MeshTunnel3 *t, /** - * Handle channel NACK. + * Handle channel NACK: check correctness and call channel handler for NACKs. * - * @param t Tunnel on which the data came. - * @param msg Data message. + * @param t Tunnel on which the NACK came. + * @param msg NACK message. */ static void handle_ch_nack (struct MeshTunnel3 *t, @@ -995,7 +995,7 @@ handle_ch_nack (struct MeshTunnel3 *t, /* Check channel */ ch = GMT_get_channel (t, ntohl (msg->chid)); - if (NULL != ch && ! GMT_is_loopback (t)) + if (NULL == ch) { GNUNET_STATISTICS_update (stats, "# channel NACK on unknown channel", 1, GNUNET_NO);