Fixed bug with remote tunnel traffic reception
authorBart Polot <bart@net.in.tum.de>
Fri, 20 Jan 2012 12:49:55 +0000 (12:49 +0000)
committerBart Polot <bart@net.in.tum.de>
Fri, 20 Jan 2012 12:49:55 +0000 (12:49 +0000)
src/mesh/gnunet-service-mesh.c

index 379609c96753cd9c1420aad32e025cdac237488f..2b55f0822ec9d85f50bde4c1d5e863bbb74e8fd8 100644 (file)
@@ -861,15 +861,10 @@ send_subscribed_clients (const struct GNUNET_MessageHeader *msg,
       // FIXME proper client differentiation mechanism required
       if (htons (msg->type) == GNUNET_MESSAGE_TYPE_MESH_TO_ORIGIN)
         *tid = htonl (t->local_tid);
-      else if(c == t->client)
-        *tid = htonl (t->local_tid);
       else if(c == t->client_dest)
         *tid = htonl (t->local_tid_dest);
       else
-      {
-        GNUNET_break (0);
-        continue;
-      }
+        *tid = htonl (t->local_tid);
       count++;
       GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "MESH:      sending\n");
       GNUNET_SERVER_notification_context_unicast (nc, c->handle,