From: Matthias Wachs Date: Thu, 8 Aug 2013 07:58:12 +0000 (+0000) Subject: added error message X-Git-Tag: initial-import-from-subversion-38251~7960 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee3d92aef7017e9243deb67bbf7dd6d7371e4de9;hp=54a4897c037cecd1f61ab835d8c7e53375690c2f;p=oweals%2Fgnunet.git added error message --- diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index f5d226f08..bd557b9d1 100644 --- 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,