From a74ce8e7ad39f892aead93d8e25c87d139108bde Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 14 Jan 2017 18:01:12 +0100 Subject: [PATCH] trying to fix issue reported by Lurchi --- src/transport/gnunet-service-transport_neighbours.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index d82112e03..e1e4f56f8 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -2236,6 +2236,14 @@ GST_neighbours_handle_session_syn (const struct GNUNET_MessageHeader *message, scm = (const struct TransportSynMessage *) message; GNUNET_break_op (0 == ntohl (scm->reserved)); ts = GNUNET_TIME_absolute_ntoh (scm->timestamp); + if (0 == + memcmp (&GST_my_identity, + peer, + sizeof (struct GNUNET_PeerIdentity))) + { + /* loopback connection-to-self, ignore */ + return GNUNET_SYSERR; + } n = lookup_neighbour (peer); if (NULL == n) { -- 2.25.1