diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-10-18 12:27:38 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-10-18 12:27:38 +0000 |
commit | ec29799909c1c886fafed250c2caf8f4f46ae2dd (patch) | |
tree | a685254a9a054e77475d41f728c65c991bc05a40 /src/core/gnunet-service-core_neighbours.c | |
parent | f4897a8ae7a0f5e5eb3d2aff5d1beef1f6e0d2a6 (diff) | |
download | gnunet-ec29799909c1c886fafed250c2caf8f4f46ae2dd.tar.gz gnunet-ec29799909c1c886fafed250c2caf8f4f46ae2dd.zip |
-mirror check on disconnect
Diffstat (limited to 'src/core/gnunet-service-core_neighbours.c')
-rw-r--r-- | src/core/gnunet-service-core_neighbours.c | 7 |
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, | |||
401 | { | 401 | { |
402 | struct Neighbour *n; | 402 | struct Neighbour *n; |
403 | 403 | ||
404 | if (0 == memcmp (peer, | ||
405 | &GSC_my_identity, | ||
406 | sizeof (struct GNUNET_PeerIdentity))) | ||
407 | { | ||
408 | GNUNET_break (0); | ||
409 | return; | ||
410 | } | ||
404 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 411 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
405 | "Peer `%s' disconnected from us; received notification from transport.\n", | 412 | "Peer `%s' disconnected from us; received notification from transport.\n", |
406 | GNUNET_i2s (peer)); | 413 | GNUNET_i2s (peer)); |