aboutsummaryrefslogtreecommitdiff
path: root/src/cadet
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-02-20 23:23:58 +0100
committerChristian Grothoff <christian@grothoff.org>2017-02-20 23:24:21 +0100
commit8c33a0e02cd9e42c3aca834eafe5a39e0ebc82d1 (patch)
tree4b1baa07a59d7dc4546dc201c176bf152fe7a62b /src/cadet
parent9bb2b2522270761e59e6f0a22b7db1d31f1cc8b4 (diff)
downloadgnunet-8c33a0e02cd9e42c3aca834eafe5a39e0ebc82d1.tar.gz
gnunet-8c33a0e02cd9e42c3aca834eafe5a39e0ebc82d1.zip
also do send_kx if we fail to decrypt
Diffstat (limited to 'src/cadet')
-rw-r--r--src/cadet/gnunet-service-cadet-new_tunnels.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet-new_tunnels.c b/src/cadet/gnunet-service-cadet-new_tunnels.c
index f4772a16c..ed3a3a362 100644
--- a/src/cadet/gnunet-service-cadet-new_tunnels.c
+++ b/src/cadet/gnunet-service-cadet-new_tunnels.c
@@ -3135,14 +3135,21 @@ GCT_handle_encrypted (struct CadetTConnection *ct,
3135 if (-1 == decrypted_size) 3135 if (-1 == decrypted_size)
3136 { 3136 {
3137 /* Decryption failed for good, complain. */ 3137 /* Decryption failed for good, complain. */
3138 GNUNET_break_op (0);
3139 LOG (GNUNET_ERROR_TYPE_WARNING, 3138 LOG (GNUNET_ERROR_TYPE_WARNING,
3140 "%s failed to decrypt and validate encrypted data\n", 3139 "%s failed to decrypt and validate encrypted data, retrying KX\n",
3141 GCT_2s (t)); 3140 GCT_2s (t));
3142 GNUNET_STATISTICS_update (stats, 3141 GNUNET_STATISTICS_update (stats,
3143 "# unable to decrypt", 3142 "# unable to decrypt",
3144 1, 3143 1,
3145 GNUNET_NO); 3144 GNUNET_NO);
3145 if (NULL != t->kx_task)
3146 {
3147 GNUNET_SCHEDULER_cancel (t->kx_task);
3148 t->kx_task = NULL;
3149 }
3150 send_kx (t,
3151 ct,
3152 &t->ax);
3146 return; 3153 return;
3147 } 3154 }
3148 3155