aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesh/gnunet-service-mesh.c')
-rw-r--r--src/mesh/gnunet-service-mesh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesh/gnunet-service-mesh.c b/src/mesh/gnunet-service-mesh.c
index 7b5c7fc1b..e61b978f0 100644
--- a/src/mesh/gnunet-service-mesh.c
+++ b/src/mesh/gnunet-service-mesh.c
@@ -3724,7 +3724,8 @@ handle_mesh_unicast (void *cls, const struct GNUNET_PeerIdentity *peer,
3724 tunnel_send_fwd_ack (t, GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK); 3724 tunnel_send_fwd_ack (t, GNUNET_MESSAGE_TYPE_MESH_UNICAST_ACK);
3725 return GNUNET_OK; 3725 return GNUNET_OK;
3726 } 3726 }
3727 t->prev_fc.last_pid_recv = pid; 3727 if (GMC_is_pid_bigger(pid, t->prev_fc.last_pid_recv))
3728 t->prev_fc.last_pid_recv = pid;
3728 if (0 == t->next_hop) 3729 if (0 == t->next_hop)
3729 { 3730 {
3730 GNUNET_break (0); 3731 GNUNET_break (0);
@@ -3829,7 +3830,8 @@ handle_mesh_to_orig (void *cls, const struct GNUNET_PeerIdentity *peer,
3829 } 3830 }
3830 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3831 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3831 " not for us, retransmitting...\n"); 3832 " not for us, retransmitting...\n");
3832 t->next_fc.last_pid_recv = pid; 3833 if (GMC_is_pid_bigger (pid, t->next_fc.last_pid_recv))
3834 t->next_fc.last_pid_recv = pid;
3833 if (0 == t->prev_hop) /* No owner AND no prev hop */ 3835 if (0 == t->prev_hop) /* No owner AND no prev hop */
3834 { 3836 {
3835 if (GNUNET_YES == t->destroy) 3837 if (GNUNET_YES == t->destroy)