GNUNET_i2s (&s->target));
return GNUNET_SYSERR;
}
- else
- GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, plugin->name,
- "address peer `%s'\n",
- http_common_plugin_address_to_string (plugin, s->addr, s->addrlen));
-
GNUNET_asprintf (&url, "%s/%s;%u",
http_common_plugin_address_to_string (plugin, s->addr, s->addrlen),
ats.value = htonl (GNUNET_ATS_NET_UNSPECIFIED);
sa = http_common_socket_from_address (address->address, address->address_length, &res);
-
-
if (GNUNET_SYSERR == res)
{
return NULL;
void *addr;
size_t addrlen;
+
+ char *addrstring;
};
static void
while (NULL != head)
{
w = head;
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Plugin did not remove address `%s' \n"), w->addrstring);
GNUNET_CONTAINER_DLL_remove (head, tail, w);
c ++;
GNUNET_free (w->addr);
+ GNUNET_free (w->addrstring);
GNUNET_free (w);
}
if (c > 0)
end_badly_now();
return;
}
-
+ w->addrstring = strdup (api->address_to_string (api, w->addr, w->addrlen));
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
_("Plugin added address `%s'\n"), a2s);
GNUNET_CONTAINER_DLL_remove (head, tail, w);
GNUNET_free (w->addr);
+ GNUNET_free (w->addrstring);
GNUNET_free (w);
}
else