gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] branch master updated: trying to fix issue reporte


From: gnunet
Subject: [GNUnet-SVN] [gnunet] branch master updated: trying to fix issue reported by Lurchi
Date: Sat, 14 Jan 2017 18:01:14 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository gnunet.

The following commit(s) were added to refs/heads/master by this push:
     new a74ce8e7a trying to fix issue reported by Lurchi
a74ce8e7a is described below

commit a74ce8e7ad39f892aead93d8e25c87d139108bde
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jan 14 18:01:12 2017 +0100

    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)
   {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]