summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-05-11 08:33:45 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-05-11 08:33:45 +0000
commit699795bc2e42aa838819965ede08e4cca34fedba (patch)
treec4d0b16889bd038dd8674f88843e20710e447e71 /src
parentbb07309af299e2c5062883dec0c89cfe670dee0d (diff)
surpressed identity problem
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core.c7
-rw-r--r--src/transport/gnunet-service-transport.c5
2 files changed, 7 insertions, 5 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;
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index fb59a90dc..37c99b8ef 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -4049,10 +4049,9 @@ check_pending_validation (void *cls,
{
char * peer;
GNUNET_asprintf(&peer, "%s",GNUNET_i2s (&pong->pid));
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Received PONG for different identity : I am %s, PONG identity: %s\n",GNUNET_i2s (&my_identity), peer );
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "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;
}
if (ve->addrlen != 0)