diff options
Diffstat (limited to 'src/core/gnunet-service-core.c')
-rw-r--r-- | src/core/gnunet-service-core.c | 7 |
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, | |||
3534 | if (0 != memcmp (&t.target, | 3534 | if (0 != memcmp (&t.target, |
3535 | &my_identity, sizeof (struct GNUNET_PeerIdentity))) | 3535 | &my_identity, sizeof (struct GNUNET_PeerIdentity))) |
3536 | { | 3536 | { |
3537 | char * peer; | 3537 | char * sender; |
3538 | GNUNET_asprintf(&sender, "%s",GNUNET_i2s (&n->peer)); | ||
3539 | char * peer; | ||
3538 | GNUNET_asprintf(&peer, "%s",GNUNET_i2s (&t.target)); | 3540 | GNUNET_asprintf(&peer, "%s",GNUNET_i2s (&t.target)); |
3539 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 3541 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
3540 | "Received PING for different identity : I am %s, PONG identity: %s\n",GNUNET_i2s (&my_identity), peer ); | 3542 | "Received PING from `%s' for different identity: I am `%s', PONG identity: `%s'\n",sender, GNUNET_i2s (&my_identity), peer ); |
3543 | GNUNET_free (sender); | ||
3541 | GNUNET_free (peer); | 3544 | GNUNET_free (peer); |
3542 | GNUNET_break_op (0); | 3545 | GNUNET_break_op (0); |
3543 | return; | 3546 | return; |