- fix NACK handling (related to cov 10832)
authorBart Polot <bart@net.in.tum.de>
Fri, 15 Nov 2013 13:16:40 +0000 (13:16 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 15 Nov 2013 13:16:40 +0000 (13:16 +0000)
src/mesh/gnunet-service-mesh_tunnel.c

index 26eb5d98304c5ade21a30b3d78df4bf2f7bef616..fb8d7ded6e4d2a3b7457e99795eb1637956145bd 100644 (file)
@@ -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);