summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-10-18 12:27:38 +0000
committerChristian Grothoff <christian@grothoff.org>2015-10-18 12:27:38 +0000
commitec29799909c1c886fafed250c2caf8f4f46ae2dd (patch)
treea685254a9a054e77475d41f728c65c991bc05a40 /src
parentf4897a8ae7a0f5e5eb3d2aff5d1beef1f6e0d2a6 (diff)
-mirror check on disconnect
Diffstat (limited to 'src')
-rw-r--r--src/core/gnunet-service-core_neighbours.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/core/gnunet-service-core_neighbours.c b/src/core/gnunet-service-core_neighbours.c
index c89a8f45d..f96d66d6e 100644
--- a/src/core/gnunet-service-core_neighbours.c
+++ b/src/core/gnunet-service-core_neighbours.c
@@ -401,6 +401,13 @@ handle_transport_notify_disconnect (void *cls,
{
struct Neighbour *n;
+ if (0 == memcmp (peer,
+ &GSC_my_identity,
+ sizeof (struct GNUNET_PeerIdentity)))
+ {
+ GNUNET_break (0);
+ return;
+ }
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Peer `%s' disconnected from us; received notification from transport.\n",
GNUNET_i2s (peer));