{
char *stat;
GNUNET_asprintf (&stat,
- gettext_noop("Advertised URI `%s' downloaded"),
+ gettext_noop("# advertised URI `%s' downloaded"),
current_adv_uri);
GNUNET_STATISTICS_get (learn_peer.stats,
"hostlist",
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Could not read advertising server's configuration\n" );
+ if ( NULL != expected_uri ) GNUNET_free ( expected_uri );
return GNUNET_SYSERR;
}
hostname = GNUNET_RESOLVER_local_hostname_get ();
else
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Expected URI `%s' and recieved URI `%s' differ\n", expected_uri, current_adv_uri);
- GNUNET_free ( expected_uri );
- GNUNET_free ( hostname );
+ if ( NULL != expected_uri ) GNUNET_free ( expected_uri );
+ if ( NULL != expected_uri ) GNUNET_free ( hostname );
return GNUNET_OK;
}
"Advertised hostlist could not be downloaded from server\n");
failed = GNUNET_YES;
}
-
if (adv_sent == GNUNET_NO)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,