diff options
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index fc715a419..05cd5f066 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -2203,10 +2203,13 @@ GCT_handle_encrypted (struct CadetTunnel *t, | |||
2203 | 2203 | ||
2204 | if (-1 == decrypted_size) | 2204 | if (-1 == decrypted_size) |
2205 | { | 2205 | { |
2206 | GNUNET_break_op (0); | ||
2207 | GNUNET_STATISTICS_update (stats, "# unable to decrypt", 1, GNUNET_NO); | 2206 | GNUNET_STATISTICS_update (stats, "# unable to decrypt", 1, GNUNET_NO); |
2208 | LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong crypto on tunnel %s\n", GCT_2s (t)); | 2207 | if (CADET_TUNNEL_KEY_PING <= t->estate) |
2209 | GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); | 2208 | { |
2209 | GNUNET_break_op (0); | ||
2210 | LOG (GNUNET_ERROR_TYPE_WARNING, "Wrong crypto, tunnel %s\n", GCT_2s (t)); | ||
2211 | GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); | ||
2212 | } | ||
2210 | return; | 2213 | return; |
2211 | } | 2214 | } |
2212 | GCT_change_estate (t, CADET_TUNNEL_KEY_OK); | 2215 | GCT_change_estate (t, CADET_TUNNEL_KEY_OK); |