- update bck pid on all traffic, not only local
authorBart Polot <bart@net.in.tum.de>
Thu, 11 Oct 2012 16:34:40 +0000 (16:34 +0000)
committerBart Polot <bart@net.in.tum.de>
Thu, 11 Oct 2012 16:34:40 +0000 (16:34 +0000)
src/mesh/gnunet-service-mesh.c

index 506cb9d207d5d83b6b9c3ffa68f48b2d3ca70b4e..c2cca1f23f69d91fbf33984113bc0944205e3f7b 100644 (file)
@@ -5769,6 +5769,7 @@ handle_mesh_data_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 " pid %u not seen yet, forwarding\n", pid);
   }
+  t->bck_pid++;
 
   if (NULL != t->owner)
   {
@@ -7639,7 +7640,6 @@ handle_local_to_origin (void *cls, struct GNUNET_SERVER_Client *client,
                   ntohl (copy->pid));
       return;
     }
-    t->bck_pid++;
     copy->sender = my_full_id;
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                 "  calling generic handler...\n");