projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
54a4897
)
added error message
author
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 8 Aug 2013 07:58:12 +0000
(07:58 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Thu, 8 Aug 2013 07:58:12 +0000
(07:58 +0000)
src/transport/plugin_transport_tcp.c
patch
|
blob
|
history
diff --git
a/src/transport/plugin_transport_tcp.c
b/src/transport/plugin_transport_tcp.c
index f5d226f0839f2ad1fa9ce957fe4fcf5a9b185df0..bd557b9d125a346c7a5280b7b968a0c33d396650 100644
(file)
--- a/
src/transport/plugin_transport_tcp.c
+++ b/
src/transport/plugin_transport_tcp.c
@@
-2022,7
+2022,14
@@
handle_tcp_welcome (void *cls, struct GNUNET_SERVER_Client *client,
{
/* refuse connections from ourselves */
GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
- GNUNET_break (0);
+ if (GNUNET_OK == GNUNET_SERVER_client_get_address (client, &vaddr, &alen))
+ {
+ LOG (GNUNET_ERROR_TYPE_WARNING,
+ "Received %s message from my own identity `%4s' on address `%s'\n",
+ "WELCOME", GNUNET_i2s (&wm->clientIdentity), GNUNET_a2s (vaddr, alen));
+ GNUNET_free (vaddr);
+ }
+ GNUNET_break_op (0);
return;
}
LOG (GNUNET_ERROR_TYPE_DEBUG,