From: Bart Polot Date: Sat, 13 Jul 2013 01:43:17 +0000 (+0000) Subject: - fix unreliable unicast X-Git-Tag: initial-import-from-subversion-38251~8329 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2858e8617335d81020ab7258ba2ef43161e62753;hp=c0756568dc908578795271571ef17f7f55fa2814;p=oweals%2Fgnunet.git - fix unreliable unicast --- diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c index acf9bc3dd..d7e3c0aa4 100644 --- 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