From: Christian Grothoff Date: Thu, 20 Oct 2011 13:14:42 +0000 (+0000) Subject: trying to fix assertion failure at :496 X-Git-Tag: initial-import-from-subversion-38251~16373 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=de4fc4681c1924073a9812f025e979897e814099;p=oweals%2Fgnunet.git trying to fix assertion failure at :496 --- diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 6e6d0982b..23ff82f91 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c @@ -1186,6 +1186,9 @@ GST_neighbours_force_disconnect (const struct GNUNET_PeerIdentity *target) GNUNET_STATISTICS_update (GST_stats, gettext_noop ("# peers disconnected due to external request"), 1, GNUNET_NO); + n = lookup_neighbour (target); + if (NULL == n) + return; /* gone already */ } disconnect_neighbour (n); }