summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-05-11 08:09:36 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-05-11 08:09:36 +0000
commit104f6507ea4c61d940fc895b4cd960a98afd82b7 (patch)
tree60ef9990a8ec99de29740032583e46a113dc642d /src
parentb0edf0e8880a7694f10d35d29879e41025accdd4 (diff)
bug hunting
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core.c5
-rw-r--r--src/transport/gnunet-service-transport.c7
2 files changed, 9 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core.c b/src/core/gnunet-service-core.c
index f54e4a7a0..0bf6a5c39 100644
--- a/src/core/gnunet-service-core.c
+++ b/src/core/gnunet-service-core.c
@@ -3534,6 +3534,11 @@ handle_ping (struct Neighbour *n,
if (0 != memcmp (&t.target,
&my_identity, sizeof (struct GNUNET_PeerIdentity)))
{
+ 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 );
+ GNUNET_free (peer);
GNUNET_break_op (0);
return;
}
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index ed7942112..fb59a90dc 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -4047,10 +4047,11 @@ check_pending_validation (void *cls,
&my_identity,
sizeof (struct GNUNET_PeerIdentity)))
{
- char * peer1;
- GNUNET_asprintf(&peer1, "%s",GNUNET_i2s (&pong->pid));
+ char * peer;
+ GNUNET_asprintf(&peer, "%s",GNUNET_i2s (&pong->pid));
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Received PONG for different identity : %s %s\n",GNUNET_i2s (&my_identity), peer1 );
+ "Received PONG for different identity : I am %s, PONG identity: %s\n",GNUNET_i2s (&my_identity), peer );
+ GNUNET_free (peer);
GNUNET_break_op (0);
return GNUNET_NO;
}