diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-05 13:46:59 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-06-05 13:46:59 +0000 |
commit | b5cffcc2a077c2f2bba2d4c13569eaecb98b9490 (patch) | |
tree | e1ae1761754192da3824a9e540ac85e9250260a6 /src | |
parent | 0e401901158427e51fc3b2d1bb58cb8b6bc6d499 (diff) | |
download | gnunet-b5cffcc2a077c2f2bba2d4c13569eaecb98b9490.tar.gz gnunet-b5cffcc2a077c2f2bba2d4c13569eaecb98b9490.zip |
remove protocol violation
- this issue can occur when 2 peers use the same addresses, for example private ip addresses
So if a remote peer uses and publishes the same private address as the local peer, we might receive our own id if we try to connect it
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 36da5027a..ed3ecbc6b 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2081,13 +2081,12 @@ handle_tcp_welcome (void *cls, struct GNUNET_SERVER_Client *client, | |||
2081 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); | 2081 | GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); |
2082 | if (GNUNET_OK == GNUNET_SERVER_client_get_address (client, &vaddr, &alen)) | 2082 | if (GNUNET_OK == GNUNET_SERVER_client_get_address (client, &vaddr, &alen)) |
2083 | { | 2083 | { |
2084 | LOG(GNUNET_ERROR_TYPE_WARNING, | 2084 | LOG(GNUNET_ERROR_TYPE_INFO, |
2085 | "Received %s message from my own identity `%4s' on address `%s'\n", | 2085 | "Received %s message from my own identity `%4s' on address `%s'\n", |
2086 | "WELCOME", GNUNET_i2s (&wm->clientIdentity), | 2086 | "WELCOME", GNUNET_i2s (&wm->clientIdentity), |
2087 | GNUNET_a2s (vaddr, alen)); | 2087 | GNUNET_a2s (vaddr, alen)); |
2088 | GNUNET_free(vaddr); | 2088 | GNUNET_free(vaddr); |
2089 | } | 2089 | } |
2090 | GNUNET_break_op(0); | ||
2091 | return; | 2090 | return; |
2092 | } | 2091 | } |
2093 | 2092 | ||