summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_neighbours.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-26 14:48:56 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-26 14:48:56 +0000
commit019a74602c855ecde0fadeb74176401a3b4ec01c (patch)
tree295c96de42a69b9fa411a4c8b9e1dc3a15b633be /src/transport/gnunet-service-transport_neighbours.c
parent24b29e7ed4cc4b068d45bfcdda8a4c2c7e3d458c (diff)
-check transport-side for connect-to-self
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r--src/transport/gnunet-service-transport_neighbours.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c
index db866f5a0..6664dd332 100644
--- a/src/transport/gnunet-service-transport_neighbours.c
+++ b/src/transport/gnunet-service-transport_neighbours.c
@@ -2193,6 +2193,10 @@ setup_neighbour (const struct GNUNET_PeerIdentity *peer)
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Creating new neighbour entry for `%s'\n",
GNUNET_i2s (peer));
+ GNUNET_assert (0 !=
+ memcmp (&GST_my_identity,
+ peer,
+ sizeof (struct GNUNET_PeerIdentity)));
n = GNUNET_new (struct NeighbourMapEntry);
n->id = *peer;
n->ack_state = ACK_UNDEFINED;