-mirror check on disconnect
authorChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 12:27:38 +0000 (12:27 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 18 Oct 2015 12:27:38 +0000 (12:27 +0000)
src/core/gnunet-service-core_neighbours.c

index c89a8f45d77b901d83989017c9ba97e25232d3de..f96d66d6e016766e6421a16cf9dcbc240d484d1c 100644 (file)
@@ -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));