/*
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;
{
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
ai = find_ai (address,
session);
if (NULL == ai)
{
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
ai = find_ai (address, session);
if (NULL == ai)
{
struct GNUNET_ATS_AddressRecord *ar;
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
+
/* Sanity checks for a valid inbound address */
if (NULL == address->transport_name)
{
struct GNUNET_ATS_AddressRecord *ar;
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
/* validadte address */
if (NULL == address->transport_name)
{
{
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
ai = find_ai (address, NULL);
if (NULL == ai)
{
{
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
if (NULL == session)
{
GNUNET_break (0);
{
struct AddressInfo *ai;
+ if (0 ==
+ memcmp (&GST_my_identity,
+ &address->peer,
+ sizeof (struct GNUNET_PeerIdentity)))
+ return; /* our own, ignore! */
LOG (GNUNET_ERROR_TYPE_DEBUG,
"Address %s of peer %s expired\n",
GST_plugins_a2s (address),