summaryrefslogtreecommitdiff
path: root/src/core/gnunet-service-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r--src/core/gnunet-service-core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index 0bf6a5c39..3f3142689 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -3534,10 +3534,13 @@ handle_ping (struct Neighbour *n,
if (0 != memcmp (&t.target,
&my_identity, sizeof (struct GNUNET_PeerIdentity)))
{
- char * peer;
+ char * sender;
+ GNUNET_asprintf(&sender, "%s",GNUNET_i2s (&n->peer));
+ char * peer;
GNUNET_asprintf(&peer, "%s",GNUNET_i2s (&t.target));
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Received PING for different identity : I am %s, PONG identity: %s\n",GNUNET_i2s (&my_identity), peer );
+ "Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n",sender, GNUNET_i2s (&my_identity), peer );
+ GNUNET_free (sender);
GNUNET_free (peer);
GNUNET_break_op (0);
return;