From: Christian Grothoff Date: Sat, 14 Jan 2017 17:01:12 +0000 (+0100) Subject: trying to fix issue reported by Lurchi X-Git-Tag: taler-0.2.1~449 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a74ce8e7ad39f892aead93d8e25c87d139108bde;p=oweals%2Fgnunet.git trying to fix issue reported by Lurchi --- 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) {