diff options
author | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:54 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2016-10-26 04:20:54 +0000 |
commit | bbdbdc3a614060c7d2f156985ae1fb76209cebc9 (patch) | |
tree | e81de39046d2d91ab94c32457b3297b481936303 | |
parent | 829ff43c14f502fcf4e20bc1d2066c9bc9b2033f (diff) | |
download | gnunet-bbdbdc3a614060c7d2f156985ae1fb76209cebc9.tar.gz gnunet-bbdbdc3a614060c7d2f156985ae1fb76209cebc9.zip |
- don't complain about AX messages pre-KX
-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); |