diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2015-01-05 04:35:56 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2015-01-05 04:35:56 +0000 |
commit | 4b46e4a593dfe2738d087f3cb18535053af773b5 (patch) | |
tree | f9b9486edc37836de103409733ef2c27ae513eee /src/datastore/gnunet-service-datastore.c | |
parent | 168354abecc858a90c4db8363db78593b0c24a7b (diff) | |
download | gnunet-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/datastore/gnunet-service-datastore.c')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index 71d436999..6c493768d 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -1661,6 +1661,8 @@ run (void *cls, | |||
1661 | &process_stat_done, | 1661 | &process_stat_done, |
1662 | &process_stat_in, | 1662 | &process_stat_in, |
1663 | NULL); | 1663 | NULL); |
1664 | if (NULL == stat_get) | ||
1665 | process_stat_done (NULL, GNUNET_SYSERR); | ||
1664 | GNUNET_SERVER_disconnect_notify (server, | 1666 | GNUNET_SERVER_disconnect_notify (server, |
1665 | &cleanup_reservations, | 1667 | &cleanup_reservations, |
1666 | NULL); | 1668 | NULL); |