aboutsummaryrefslogtreecommitdiff
path: root/src/mesh/gnunet-service-mesh_tunnel.c
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2013-12-16 17:11:28 +0000
committerBart Polot <bart@net.in.tum.de>2013-12-16 17:11:28 +0000
commit8fab9fc75aa293be3849e30748fcf044436d7cb9 (patch)
tree339224d55e4b0c6fc713f04c7ff9fb0dab365235 /src/mesh/gnunet-service-mesh_tunnel.c
parent40b308fe5c2f882fdf1a59c2f5a7dd1ebe78d0cf (diff)
downloadgnunet-8fab9fc75aa293be3849e30748fcf044436d7cb9.tar.gz
gnunet-8fab9fc75aa293be3849e30748fcf044436d7cb9.zip
- duplicate PONG can happen if PING was re-transmitted but first one came through: second PONG will be "unexpected"
Diffstat (limited to 'src/mesh/gnunet-service-mesh_tunnel.c')
-rw-r--r--src/mesh/gnunet-service-mesh_tunnel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesh/gnunet-service-mesh_tunnel.c b/src/mesh/gnunet-service-mesh_tunnel.c
index 47a06bf8e..bd57d94c6 100644
--- a/src/mesh/gnunet-service-mesh_tunnel.c
+++ b/src/mesh/gnunet-service-mesh_tunnel.c
@@ -1434,7 +1434,7 @@ handle_pong (struct MeshTunnel3 *t,
1434 LOG (GNUNET_ERROR_TYPE_DEBUG, "PONG received\n"); 1434 LOG (GNUNET_ERROR_TYPE_DEBUG, "PONG received\n");
1435 if (GNUNET_SCHEDULER_NO_TASK == t->rekey_task) 1435 if (GNUNET_SCHEDULER_NO_TASK == t->rekey_task)
1436 { 1436 {
1437 GNUNET_break_op (GNUNET_NO != t->destroy); 1437 GNUNET_STATISTICS_update (stats, "# duplicate PONG messages", 1, GNUNET_NO);
1438 return; 1438 return;
1439 } 1439 }
1440 t_decrypt (t, &challenge, &msg->nonce, sizeof (uint32_t), msg->iv); 1440 t_decrypt (t, &challenge, &msg->nonce, sizeof (uint32_t), msg->iv);