summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-service-transport_ats.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amat.us>2017-12-18 18:47:16 -0600
committerDavid Barksdale <amatus@amat.us>2017-12-18 18:47:16 -0600
commitc83cd1bec9663f0eba30726d7d86b93a11f66930 (patch)
treedffebb8e241e69c185358eef9d04ce8bb5cb476b /src/transport/gnunet-service-transport_ats.c
parent012ff13acc0cb2f5d7210aa48819395fecf12a3d (diff)
Another assert which is actually OK.
Diffstat (limited to 'src/transport/gnunet-service-transport_ats.c')
-rw-r--r--src/transport/gnunet-service-transport_ats.c10
1 files 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);