gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

commit e9771c623ba84b356f3bc36e7e9b849afc38c5c1
parent 97869e01ef96e9e8929a02ef18e5ace551b70e2f
Author: Matthias Wachs <wachs@net.in.tum.de>
Date:   Fri, 13 Dec 2013 09:05:33 +0000

this is not possible, since identity check is enforced by transport_clients on try connect call


Diffstat:
Msrc/transport/gnunet-service-transport_neighbours.c | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c @@ -1732,15 +1732,6 @@ GST_neighbours_try_connect (const struct GNUNET_PeerIdentity *target) GNUNET_i2s (target)); return; /* during shutdown, do nothing */ } - if (0 == memcmp (target, - &GST_my_identity, sizeof (struct GNUNET_PeerIdentity))) - { - /* refuse to connect to myself */ - /* FIXME: can this happen? Is this not an API violation? */ - GNUNET_log (GNUNET_ERROR_TYPE_INFO, - "Refusing to try to connect to myself.\n"); - return; - } n = lookup_neighbour (target); GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Asked to connect to peer `%s' (state: %s)\n",