From c83cd1bec9663f0eba30726d7d86b93a11f66930 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Mon, 18 Dec 2017 18:47:16 -0600 Subject: [PATCH] Another assert which is actually OK. --- src/transport/gnunet-service-transport_ats.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/transport/gnunet-service-transport_ats.c b/src/transport/gnunet-service-transport_ats.c index c780f9a78..01e115bfc 100644 --- a/src/transport/gnunet-service-transport_ats.c +++ b/src/transport/gnunet-service-transport_ats.c @@ -337,14 +337,10 @@ GST_ats_block_address (const struct GNUNET_HELLO_Address *address, return; /* our own, ignore! */ ai = find_ai (address, session); - if (NULL == ai) - { - GNUNET_assert (0); - return; - } - if (NULL == ai->ar) + if (NULL == ai || NULL == ai->ar) { - /* already blocked but this might be a blacklist check callback */ + /* The address is already gone/blocked, this can happen during a blacklist + * callback. */ return; } ai->back_off = GNUNET_TIME_STD_BACKOFF (ai->back_off); -- 2.25.1