diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-08 07:58:12 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-08 07:58:12 +0000 |
commit | ee3d92aef7017e9243deb67bbf7dd6d7371e4de9 (patch) | |
tree | 5534c2555c77eb4a96455f3591fc432191489af3 /src/transport/plugin_transport_tcp.c | |
parent | 54a4897c037cecd1f61ab835d8c7e53375690c2f (diff) | |
download | gnunet-ee3d92aef7017e9243deb67bbf7dd6d7371e4de9.tar.gz gnunet-ee3d92aef7017e9243deb67bbf7dd6d7371e4de9.zip |
added error message
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 9 |
1 files changed, 8 insertions, 1 deletions
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, | |||
2022 | { | 2022 | { |
2023 | /* refuse connections from ourselves */ | 2023 | /* refuse connections from ourselves */ |
2024 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 2024 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
2025 | GNUNET_break (0); | 2025 | if (GNUNET_OK == GNUNET_SERVER_client_get_address (client, &vaddr, &alen)) |
2026 | { | ||
2027 | LOG (GNUNET_ERROR_TYPE_WARNING, | ||
2028 | "Received %s message from my own identity `%4s' on address `%s'\n", | ||
2029 | "WELCOME", GNUNET_i2s (&wm->clientIdentity), GNUNET_a2s (vaddr, alen)); | ||
2030 | GNUNET_free (vaddr); | ||
2031 | } | ||
2032 | GNUNET_break_op (0); | ||
2026 | return; | 2033 | return; |
2027 | } | 2034 | } |
2028 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2035 | LOG (GNUNET_ERROR_TYPE_DEBUG, |