[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11017 - gnunet/src/hostlist
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11017 - gnunet/src/hostlist |
Date: |
Thu, 22 Apr 2010 09:37:17 +0200 |
Author: wachs
Date: 2010-04-22 09:37:17 +0200 (Thu, 22 Apr 2010)
New Revision: 11017
Modified:
gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
Log:
Modified: gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c
===================================================================
--- gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2010-04-21
20:19:43 UTC (rev 11016)
+++ gnunet/src/hostlist/test_gnunet_daemon_hostlist_learning.c 2010-04-22
07:37:17 UTC (rev 11017)
@@ -231,7 +231,7 @@
{
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",
@@ -284,6 +284,7 @@
{
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 ();
@@ -314,8 +315,8 @@
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;
}
@@ -462,7 +463,6 @@
"Advertised hostlist could not be downloaded from server\n");
failed = GNUNET_YES;
}
-
if (adv_sent == GNUNET_NO)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11017 - gnunet/src/hostlist,
gnunet <=