gnunet

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

commit 2858e8617335d81020ab7258ba2ef43161e62753
parent c0756568dc908578795271571ef17f7f55fa2814
Author: Bart Polot <bart@net.in.tum.de>
Date:   Sat, 13 Jul 2013 01:43:17 +0000

- fix unreliable unicast

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

diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c @@ -3750,12 +3750,14 @@ handle_mesh_unicast (void *cls, const struct GNUNET_PeerIdentity *peer, if (GMC_is_pid_bigger (pid, t->prev_fc.last_pid_recv) && (GNUNET_NO == t->reliable || - GNUNET_ntohll (msg->mid) == (t->bck_rel->mid_recv + 1)) ) + (GNUNET_ntohll (msg->mid) == (t->bck_rel->mid_recv + 1) && + t->bck_rel->mid_recv++) + ) + ) { GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, " pid %u not seen yet, forwarding\n", pid); t->prev_fc.last_pid_recv = pid; - t->bck_rel->mid_recv++; tunnel_send_client_ucast (t, msg); } else