diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-05-07 13:41:32 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-05-07 13:41:32 +0000 |
commit | 674494dc641b758968e0c1b8b9ad11ec34645f96 (patch) | |
tree | 62f1479e124f175d4a17bd225d50b70dde72b18f | |
parent | b80cfb95a126b19eaf37eab0c7b483cd1ae449c7 (diff) | |
download | gnunet-674494dc641b758968e0c1b8b9ad11ec34645f96.tar.gz gnunet-674494dc641b758968e0c1b8b9ad11ec34645f96.zip |
- resend KX on malformed PONG
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index 391c8ef60..b03623ad2 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -1587,10 +1587,11 @@ handle_pong (struct CadetTunnel3 *t, | |||
1587 | 1587 | ||
1588 | if (challenge != t->kx_ctx->challenge) | 1588 | if (challenge != t->kx_ctx->challenge) |
1589 | { | 1589 | { |
1590 | LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong PONG challenge\n"); | 1590 | LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong PONG challenge on %s\n", GMT_2s (t)); |
1591 | LOG (GNUNET_ERROR_TYPE_DEBUG, "PONG: %u (e: %u). Expected: %u.\n", | 1591 | LOG (GNUNET_ERROR_TYPE_WARNING, "PONG: %u (e: %u). Expected: %u.\n", |
1592 | challenge, msg->nonce, t->kx_ctx->challenge); | 1592 | challenge, msg->nonce, t->kx_ctx->challenge); |
1593 | GNUNET_break_op (0); | 1593 | send_ephemeral (t); |
1594 | send_ping (t); | ||
1594 | return; | 1595 | return; |
1595 | } | 1596 | } |
1596 | GNUNET_SCHEDULER_cancel (t->rekey_task); | 1597 | GNUNET_SCHEDULER_cancel (t->rekey_task); |