aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/gnunet-daemon-hostlist_client.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-01-05 04:35:56 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-01-05 04:35:56 +0000
commit4b46e4a593dfe2738d087f3cb18535053af773b5 (patch)
treef9b9486edc37836de103409733ef2c27ae513eee /src/hostlist/gnunet-daemon-hostlist_client.c
parent168354abecc858a90c4db8363db78593b0c24a7b (diff)
downloadgnunet-4b46e4a593dfe2738d087f3cb18535053af773b5.tar.gz
gnunet-4b46e4a593dfe2738d087f3cb18535053af773b5.zip
Check return value of GNUNET_STATISTICS_get
Or we could always call the callback with GNUNET_SYSERR.
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist_client.c')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist_client.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist_client.c b/src/hostlist/gnunet-daemon-hostlist_client.c
index 0751668b3..cd6984b1a 100644
--- a/src/hostlist/gnunet-daemon-hostlist_client.c
+++ b/src/hostlist/gnunet-daemon-hostlist_client.c
@@ -1657,6 +1657,12 @@ GNUNET_HOSTLIST_client_start (const struct GNUNET_CONFIGURATION_Handle *c,
1657 &primary_task, 1657 &primary_task,
1658 &process_stat, 1658 &process_stat,
1659 NULL); 1659 NULL);
1660 if (NULL == sget)
1661 {
1662 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1663 "Statistics request failed, scheduling hostlist download\n");
1664 ti_check_download = GNUNET_SCHEDULER_add_now (&task_check, NULL);
1665 }
1660 return GNUNET_OK; 1666 return GNUNET_OK;
1661} 1667}
1662 1668