/*
This file is part of GNUnet.
- Copyright (C) 2015 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2015 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
* suggest it again.
*
* @param cls the `struct AddressInfo` of the address to unblock
- * @param tc unused
*/
static void
-unblock_address (void *cls,
- const struct GNUNET_SCHEDULER_TaskContext *tc)
+unblock_address (void *cls)
{
struct AddressInfo *ai = cls;
return; /* our own, ignore! */
ai = find_ai (address,
session);
- if (NULL == ai)
+ if (NULL == ai || NULL == ai->ar)
{
- GNUNET_assert (0);
- return;
- }
- if (NULL == ai->ar)
- {
- /* already blocked, how did it get used!? */
- GNUNET_break (0);
+ /* The address is already gone/blocked, this can happen during a blacklist
+ * callback. */
return;
}
ai->back_off = GNUNET_TIME_STD_BACKOFF (ai->back_off);