aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-29 10:00:14 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-29 10:00:14 +0000
commitfae41d25c9ce4ca87e2fb549ccdbdf9589db4ff9 (patch)
treee3cac012508d3a64aac649867150782937053556 /src
parentf89d2d32025614d5b6a39314d0ea6ed4464d1888 (diff)
downloadgnunet-fae41d25c9ce4ca87e2fb549ccdbdf9589db4ff9.tar.gz
gnunet-fae41d25c9ce4ca87e2fb549ccdbdf9589db4ff9.zip
distinguish PING failure after rekey from other failures (#4019) when logging
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core_kx.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c
index 7f4adc2ad..f5ba0c9bc 100644
--- a/src/core/gnunet-service-core_kx.c
+++ b/src/core/gnunet-service-core_kx.c
@@ -1060,9 +1060,14 @@ GSC_KX_handle_ping (struct GSC_KeyExchangeInfo *kx,
1060 &GSC_my_identity, 1060 &GSC_my_identity,
1061 sizeof (struct GNUNET_PeerIdentity))) 1061 sizeof (struct GNUNET_PeerIdentity)))
1062 { 1062 {
1063 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1063 if (GNUNET_CORE_KX_STATE_REKEY_SENT != kx->status)
1064 "We are not the intended target of the PING from peer `%s'\n", 1064 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
1065 GNUNET_i2s (&kx->peer)); 1065 "Decryption of PING from peer `%s' failed\n",
1066 GNUNET_i2s (&kx->peer));
1067 else
1068 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1069 "Decryption of PING from peer `%s' failed after rekey (harmless)\n",
1070 GNUNET_i2s (&kx->peer));
1066 GNUNET_break_op (0); 1071 GNUNET_break_op (0);
1067 return; 1072 return;
1068 } 1073 }